:root {
  color-scheme: light;
  --paper: #f3e8d2;
  --paper-deep: #e7d4b4;
  --paper-light: #fffaf0;
  --ink: #2a1b15;
  --ink-soft: #665046;
  --rule: rgba(73, 47, 35, 0.2);
  --accent: #7c3027;
  --accent-dark: #542019;
  --gold: #9d6a37;
  --shadow: 0 28px 80px rgba(57, 35, 24, 0.16);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "STSong", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 251, 237, 0.9), transparent 32rem),
    radial-gradient(circle at 88% 15%, rgba(148, 91, 50, 0.13), transparent 28rem),
    repeating-linear-gradient(93deg, rgba(79, 52, 38, 0.018) 0 1px, transparent 1px 6px),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(124, 48, 39, 0.38);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 10px 35px rgba(57, 35, 24, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 32, 25, 0.36);
  border-radius: 50%;
  color: var(--paper-light);
  background: var(--accent);
  font-size: 0.74rem;
  box-shadow: inset 0 0 0 3px rgba(255, 250, 240, 0.18);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 62vh;
  padding: clamp(74px, 12vw, 150px) 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(38px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-intro {
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-note {
  position: relative;
  padding: 28px 28px 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.hero-note::before {
  content: "“";
  position: absolute;
  top: -0.55em;
  left: -0.05em;
  color: rgba(124, 48, 39, 0.18);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.trust-strip {
  margin: 0 0 74px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.trust-strip span {
  padding: 0 18px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

.trust-strip span + span {
  border-left: 1px solid var(--rule);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 96px;
}

.document-card {
  min-height: 270px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
  border-radius: 4px 4px 34px 4px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.6);
  box-shadow: 0 16px 45px rgba(57, 35, 24, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 48, 39, 0.38);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.document-card h2 {
  margin: 40px 0 8px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.document-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card-link {
  margin-top: 28px;
  color: var(--accent);
  font-weight: 700;
}

.legal-shell {
  width: min(860px, calc(100% - 32px));
  margin: clamp(62px, 10vw, 110px) auto 100px;
}

.legal-heading {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.legal-heading h1 {
  max-width: none;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.legal-summary {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.meta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.language-jump {
  margin: 26px 0 0;
  display: flex;
  gap: 10px;
}

.language-jump a {
  padding: 8px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.54);
  text-decoration: none;
  font-size: 0.82rem;
}

.legal-content {
  padding-top: 48px;
}

.language-section + .language-section {
  margin-top: 96px;
  padding-top: 76px;
  border-top: 3px double var(--rule);
}

.language-label {
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.language-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rule);
}

.legal-content section + section {
  margin-top: 46px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 1.12rem;
}

.legal-content p,
.legal-content li {
  color: #46342c;
}

.legal-content a,
.meta-row a {
  overflow-wrap: anywhere;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
}

.legal-content li + li {
  margin-top: 9px;
}

.callout {
  margin: 32px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 250, 240, 0.58);
  box-shadow: 0 12px 35px rgba(57, 35, 24, 0.06);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.support-list {
  display: grid;
  gap: 14px;
}

.support-item {
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 3px 3px 24px 3px;
  background: rgba(255, 250, 240, 0.54);
}

.support-item h2,
.support-item p {
  margin-top: 0;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .site-nav {
    max-width: 190px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 520px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip span:nth-child(3) {
    border-left: 0;
  }

  .trust-strip span:nth-child(n + 3) {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    display: block;
    padding: 15px 17px;
  }

  .site-nav {
    max-width: none;
    margin-top: 13px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 68px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip span,
  .trust-strip span + span,
  .trust-strip span:nth-child(3),
  .trust-strip span:nth-child(n + 3) {
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--rule);
  }

  .trust-strip span:first-child {
    border-top: 0;
  }

  .legal-shell {
    margin-top: 56px;
  }

  .language-jump {
    flex-wrap: wrap;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .site-footer,
  .language-jump {
    display: none;
  }

  main,
  .legal-shell {
    width: 100%;
    margin: 0;
  }

  .legal-content p,
  .legal-content li {
    color: black;
  }
}
