:root {
  --brand: #566427;
  --brand-soft: #88964b;
  --canvas: #f3ede4;
  --surface: #ffffff;
  --text: #171510;
  --text-secondary: #696763;
  --divider: #f3e4d1;
  --card-border: #e5ddd2;
  --max-width: 660px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--canvas);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-soft);
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 1.35rem 0 1.1rem;
  border-bottom: 1px solid var(--divider);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand);
  opacity: 0.85;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.42rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--brand);
}

.lang-toggle button:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
}

main {
  flex: 1;
  padding: 2.5rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lede {
  margin: 0 0 2rem;
  max-width: 38em;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta:hover {
  background: var(--brand-soft);
  color: #fff;
}

.meta-line {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-line a {
  color: var(--brand);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 2.5rem 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.faq {
  display: grid;
  gap: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--divider);
  padding-top: 1.15rem;
}

.faq details:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-soft);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  max-width: 40em;
}

.policy section {
  margin: 0 0 2rem;
}

.policy section:last-of-type {
  margin-bottom: 0;
}

.policy p,
.policy li {
  color: var(--text-secondary);
  max-width: 40em;
}

.policy p {
  margin: 0 0 0.75rem;
}

.policy ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.policy li {
  margin-bottom: 0.4rem;
}

.updated {
  margin: 2.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.home-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.home-links a {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.home-links a:hover {
  border-color: var(--brand-soft);
  color: var(--text);
}

.home-links strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand);
  font-size: 1.05rem;
}

.home-links span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-footer {
  padding: 1.35rem 0 1.75rem;
  border-top: 1px solid var(--divider);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--brand);
}

/* Visibility driven by [hidden] from i18n.js.
   Must win over rules like `.home-links strong { display: block }`. */
[hidden] {
  display: none !important;
}
