:root {
  color-scheme: light;
  --ink: #101b17;
  --green: #10362f;
  --green-soft: #35675c;
  --mint: #c9ff68;
  --paper: #f4f1e9;
  --card: rgba(255, 255, 255, .7);
  --line: rgba(16, 54, 47, .16);
  --muted: rgba(16, 27, 23, .68);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(201, 255, 104, .16), transparent 24rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.legal-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-brand::before {
  width: 13px;
  height: 24px;
  content: "";
  border-radius: 100% 0 100% 0;
  background: var(--mint);
  transform: rotate(28deg);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-back span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(42px, 8vw, 100px);
  padding-block: clamp(54px, 8vw, 100px) 88px;
}

.legal-content { min-width: 0; }

.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.legal-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.legal-version {
  display: inline-flex;
  margin-top: 24px;
  padding: 9px 13px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 48px 0 58px;
  padding: 0;
  list-style: none;
}

.legal-summary li {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.legal-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
}

.legal-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.legal-section h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.legal-section h3 {
  margin: 26px 0 10px;
  color: var(--green);
  font-size: 15px;
}

.legal-section p,
.legal-section li,
.legal-table td,
.legal-table th {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ol,
.legal-section ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 21px;
}

.legal-section strong { color: var(--ink); }

.legal-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.legal-card p { margin-bottom: 8px; }

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  min-width: 175px;
  padding: 17px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-table tr:last-child td { border-bottom: 0; }

.legal-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 22px;
  color: white;
  border-radius: 22px;
  background: var(--green);
}

.legal-contact a { color: var(--mint); }
.legal-contact p { color: rgba(255, 255, 255, .74); }
.legal-contact strong { color: white; }

.legal-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(12px);
}

.legal-nav strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green-soft);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
}

.legal-nav a:hover,
.legal-nav a:focus-visible { color: var(--green); }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  .legal-main { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: -1; }
  .legal-nav a { display: none; }
  .legal-nav strong { margin: 0; }
}

@media (max-width: 640px) {
  .legal-shell { width: min(100% - 28px, 1080px); }
  .legal-header { min-height: 74px; }
  .legal-back { font-size: 0; }
  .legal-main { gap: 26px; padding-top: 42px; }
  .legal-summary { grid-template-columns: 1fr; margin: 36px 0 44px; }
  .legal-summary li { min-height: 0; }
  .legal-section { padding: 28px 0; }
  .legal-card, .legal-contact { padding: 19px; }
  .legal-footer { display: grid; }
}
