:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5b6b7f;
  --line: #dce6ef;
  --green: #008f62;
  --green-dark: #006b49;
  --surface: #ffffff;
  --page: #f5f8fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--green-dark); }

a:focus-visible {
  outline: 3px solid rgba(0, 143, 98, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.legal-brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-brand span { color: var(--green); }

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

.legal-nav a { text-decoration: none; }

.legal-main {
  width: min(880px, calc(100% - 32px));
  margin: 36px auto 64px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(25, 52, 77, 0.08);
}

.legal-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin: 34px 0 8px;
  font-size: 1.28rem;
  line-height: 1.3;
}

p, li { color: var(--muted); }

ul { padding-left: 22px; }

.legal-meta {
  margin: 0 0 28px;
  color: #75869a;
  font-size: 0.9rem;
}

.legal-note {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid #e39a2d;
  border-radius: 8px;
  background: #fff8e9;
  color: #6f531d;
}

.legal-footer {
  padding: 26px 18px 38px;
  color: #76889a;
  text-align: center;
  font-size: 0.84rem;
}

@media (max-width: 620px) {
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-nav { justify-content: flex-start; }
  .legal-main { margin-top: 20px; border-radius: 18px; }
}

