@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&display=swap");

:root {
  --green: #a9e3a2;
  --green-strong: #55a95b;
  --green-dark: #285f31;
  --green-pale: #eaf7e8;
  --cream: #f8fbf6;
  --white: #fff;
  --ink: #1f3d25;
  --muted: #6f8072;
  --line: #d9e8d7;
  --shadow: rgba(45, 100, 52, 0.08);
}

html[data-theme="dark"] {
  --green: #263f2b;
  --green-strong: #8dce8b;
  --green-dark: #a9e3a2;
  --green-pale: #304c35;
  --cream: #101411;
  --white: #171c18;
  --ink: #fff;
  --muted: #a4b5a6;
  --line: rgba(169, 227, 162, 0.18);
  --shadow: rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(circle at 92% 3%, color-mix(in srgb, var(--green) 32%, transparent), transparent 25%),
    var(--cream);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
}

a { color: inherit; }

.legal-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.legal-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.legal-nav-links { display: flex; align-items: center; gap: 8px; }

.legal-nav-links a {
  display: grid;
  min-height: 38px;
  padding: 0 15px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-hero {
  margin-top: 62px;
  padding: 48px;
  border-radius: 30px;
  background: var(--green);
  color: #fff;
}

.legal-hero p {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.legal-hero span {
  display: block;
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.legal-index,
.legal-content {
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 34px var(--shadow);
}

.legal-index {
  position: sticky;
  top: 20px;
  padding: 22px;
}

.legal-index strong {
  color: var(--green-dark);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-index nav { display: grid; gap: 5px; margin-top: 14px; }

.legal-index a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.legal-index a:hover,
.legal-index a:focus-visible { color: var(--green-dark); outline: 0; }

.legal-content { padding: 18px 42px 46px; }

.legal-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.legal-section:last-child { border-bottom: 0; }

.legal-section h2 {
  margin: 0 0 15px;
  color: var(--green-dark);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.legal-section h3 {
  margin: 24px 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.75;
}

.legal-section p { margin: 0 0 13px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 12px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 8px; }
.legal-section b,
.legal-section strong { color: var(--ink); }

.callout {
  margin: 18px 0 4px;
  padding: 20px;
  border-left: 5px solid var(--green-strong);
  border-radius: 0 16px 16px 0;
  background: var(--green-pale);
}

.callout p { color: var(--ink); }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 4px 0;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-footer div { display: flex; gap: 16px; }

@media (max-width: 780px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; }
  .legal-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .legal-page { width: calc(100% - 24px); padding-top: 14px; }
  .legal-nav-links a { min-height: 34px; padding-inline: 11px; font-size: 0.52rem; }
  .legal-hero { margin-top: 42px; padding: 30px 24px; border-radius: 23px; }
  .legal-content { padding: 8px 22px 30px; }
  .legal-index nav { grid-template-columns: 1fr; }
  .legal-footer { display: grid; }
}
