:root {
  color-scheme: light dark;
  --primary: #00695c;
  --surface: #ffffff;
  --paper: #f1f4f3;
  --text: #161d1b;
  --muted: #43504c;
  --line: #c8d2cf;
  --teal: #2d5e9e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}

.brand {
  gap: 10px;
}

.brand img {
  width: 140px;
  height: 48px;
  object-fit: contain;
}

.brand svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-word {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .95rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 105, 92, .18);
}

.hero { padding: 48px 0 22px; }

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

h1 {
  max-width: 860px;
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2,
h3 { line-height: 1.2; }

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .34fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0 54px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.panel h2:first-child,
.panel h3:first-child { margin-top: 0; }

.panel p:last-child,
.panel ul:last-child { margin-bottom: 0; }

.toc {
  position: sticky;
  top: 18px;
}

ul { padding-left: 1.25rem; }

.notice {
  border-left: 4px solid var(--primary);
  background: rgba(0, 105, 92, .08);
  padding: 14px 16px;
  border-radius: 8px;
}

.muted { color: var(--muted); }

.small { font-size: .92rem; }

footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: .95rem;
}

footer p { margin: 0 0 8px; }

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4fd1ba;
    --surface: #1f2625;
    --paper: #0f1413;
    --text: #eef1f0;
    --muted: #b4c2bd;
    --line: #404d49;
    --teal: #a4c8ff;
  }

  .cta { color: #00382e; }
}

@media (max-width: 760px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
