:root {
  --bg: #f7f5ef;
  --panel: #fffdf8;
  --ink: #121826;
  --muted: #667085;
  --line: #e7e1d6;
  --accent: #1f6f64;
  --accent-2: #b8713a;
  --shadow: 0 24px 80px rgba(18, 24, 38, 0.1);
  --radius: 26px;
  --max: 1360px;
  --home-max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.4rem;
}
body {
  margin: 0;
  padding-top: 5rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 100, 0.13), transparent 34rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 48%, #f0ece2 100%);
  color: var(--ink);
  line-height: 1.65;
}
.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem max(1.35rem, calc((100vw - var(--max)) / 2 + 1.35rem));
  backdrop-filter: blur(18px);
  transition:
    padding 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
  will-change: padding, background-color, box-shadow;
}
.site-header.is-compact {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 12px 38px rgba(18, 24, 38, 0.08);
  border-bottom: 1px solid rgba(231, 225, 214, 0.72);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}
.brand-text {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    max-width 0.24s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 10rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
  transition:
    width 0.24s ease,
    height 0.24s ease,
    border-radius 0.24s ease,
    font-size 0.24s ease;
}
.site-header.is-compact .brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 10px;
  font-size: 0.58rem;
}
.site-header.is-compact .brand-text {
  opacity: 0;
  transform: translateX(-0.25rem);
  max-width: 0;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(231, 225, 214, 0.88);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.05);
  transition:
    padding 0.24s ease,
    box-shadow 0.24s ease;
}
.top-nav a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #394150;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 750;
  transition:
    padding 0.24s ease,
    font-size 0.24s ease;
}
.site-header.is-compact .top-nav {
  padding: 0.18rem;
  box-shadow: none;
}
.site-header.is-compact .top-nav a {
  padding: 0.34rem 0.65rem;
  font-size: 0.82rem;
}
.top-nav a:hover,
.top-nav a.active {
  background: #111827;
  color: #fff;
}
.top-nav .language {
  color: var(--accent);
}
.top-nav .language:hover {
  color: #fff;
}
main {
  max-width: var(--max);
  min-height: calc(100vh - 85px - 80px);
  margin: 0 auto;
  padding: 1rem 1.35rem 1.25rem;
}
.home-hero,
.feature-grid {
  max-width: var(--home-max);
  margin-left: auto;
  margin-right: auto;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
  min-height: 68vh;
}
.hero-copy h1,
.legal-hero h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin: 0.4rem 0 1.25rem;
}
.hero-copy p {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 42rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.primary {
  background: #111827;
  color: #fff;
}
.ghost {
  border: 1px solid var(--line);
  color: #111827;
  background: rgba(255, 255, 255, 0.48);
}
.hero-panel {
  min-height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #173b35, #1f6f64 55%, #c18855);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel:before {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
}
.trail-card {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  min-height: 210px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
  color: #111827;
}
.trail-card span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111827;
}
.trail-card span:nth-child(1) {
  left: 22%;
  top: 22%;
}
.trail-card span:nth-child(2) {
  left: 45%;
  top: 34%;
}
.trail-card span:nth-child(3) {
  left: 65%;
  top: 50%;
}
.trail-card span:nth-child(4) {
  left: 78%;
  top: 76%;
}
.trail-card:after {
  content: '';
  position: absolute;
  left: 26%;
  right: 22%;
  top: 29%;
  height: 50%;
  border-top: 3px dashed rgba(31, 111, 100, 0.65);
  border-right: 3px dashed rgba(31, 111, 100, 0.65);
  border-radius: 999px;
  transform: rotate(12deg);
}
.trail-card strong,
.trail-card em {
  position: absolute;
  left: 1.25rem;
}
.trail-card strong {
  bottom: 2.9rem;
}
.trail-card em {
  bottom: 1.2rem;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.feature-grid article,
.notice,
.legal-card,
.toc {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(18, 24, 38, 0.06);
}
.feature-grid article {
  padding: 1.4rem;
}
.feature-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.feature-grid p,
.notice p {
  margin: 0;
  color: var(--muted);
}
.notice {
  padding: 1.2rem 1.4rem;
}
.notice a,
.site-footer a,
.legal-card a {
  color: var(--accent);
  font-weight: 700;
}
.legal-hero {
  padding: 3.5rem 0 1.1rem;
  max-width: none;
}
.legal-hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.55rem);
  max-width: 1240px;
  overflow-wrap: normal;
  hyphens: none;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.date-pill,
.secondary-link {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 253, 248, 0.78);
  font-weight: 750;
  font-size: 0.92rem;
}
.secondary-link {
  color: var(--accent);
  text-decoration: none;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.1rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 5.6rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 1rem;
  order: 2;
}
.legal-card {
  padding: clamp(1.2rem, 3.4vw, 3rem);
  order: 1;
}
.toc p {
  font-weight: 850;
  margin: 0.2rem 0 0.75rem;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.toc a {
  display: block;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
}
.toc a:hover {
  background: #f1ede5;
  color: #111827;
}
.legal-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.03em;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p {
  margin: 0.78rem 0;
  color: #303846;
}
.legal-card .lead {
  font-size: 1.09rem;
  color: #4b5563;
}
.legal-card strong {
  color: #111827;
}
.legal-card ul {
  padding-left: 1.4rem;
  margin: 0.6rem 0 1rem;
}
.legal-card li {
  margin: 0.35rem 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
th:last-child,
td:last-child {
  border-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: #f2eee6;
  color: #111827;
}
.end-marker {
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-align: center;
  margin-top: 2rem;
}
.site-footer {
  max-width: var(--max);
  margin: 0.25rem auto 0;
  padding: 1rem 1.35rem 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  overflow-x: auto;
  margin: 0.35rem 0;
}
.footer-row a {
  text-decoration: none;
}
.footer-separator {
  color: #b8ad9c;
}
.site-footer p {
  margin: 0.35rem 0;
}
.not-found {
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found h1 {
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 1;
  margin: 0.2rem 0;
}
.not-found p {
  color: var(--muted);
  font-size: 1.1rem;
}
@media (max-width: 980px) {
  .site-header {
    position: fixed;
  }
  .home-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .home-hero {
    min-height: auto;
    padding-top: 3rem;
  }
  .hero-panel {
    min-height: 320px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: relative;
    top: auto;
    max-height: none;
    order: 1;
  }
  .legal-card {
    order: 2;
  }
  .legal-hero {
    padding-top: 2.5rem;
  }
  .hero-copy h1,
  .legal-hero h1 {
    letter-spacing: -0.055em;
  }
}
@media (max-width: 560px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }
  .top-nav {
    border-radius: 999px;
  }
  .brand-text {
    max-width: 8rem;
  }
  .site-header.is-compact .brand-text {
    max-width: 0;
  }
  .legal-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }
}
@media print {
  body {
    background: #fff;
  }
  .site-header,
  .site-footer,
  .toc,
  .hero-actions {
    display: none;
  }
  .legal-layout {
    display: block;
  }
  .legal-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
