:root {
  --ink: #071018;
  --navy: #0b1722;
  --mint: #6de2c2;
  --mint-soft: #dff8f1;
  --paper: #f3f7f6;
  --text: #1d2a30;
  --muted: #5d6d73;
  --line: rgba(7, 16, 24, 0.13);
  --white-line: rgba(255, 255, 255, 0.14);
  --max: 940px;
  --heading: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.legal-shell { width: min(calc(100% - 40px), 1180px); margin: 0 auto; }
.legal-header {
  background: var(--ink);
  border-bottom: 1px solid var(--white-line);
}
.legal-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-logo { display: block; width: 166px; height: auto; }
.back-link {
  color: #d8e1e4;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  padding: 10px 16px;
}
.back-link:hover { color: var(--mint); border-color: var(--mint); }
.legal-main {
  padding: 82px 0 105px;
  background:
    radial-gradient(circle at 88% 8%, rgba(109, 226, 194, 0.18), transparent 28%),
    var(--paper);
}
.legal-article {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 72px);
  box-shadow: 0 30px 90px rgba(7, 16, 24, 0.08);
}
.legal-kicker {
  margin: 0 0 18px;
  color: #18765e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--heading); color: var(--ink); }
h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h2 {
  margin: 52px 0 12px;
  padding-top: 4px;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h3 { margin: 26px 0 8px; font-size: 1.04rem; }
p { margin: 0 0 17px; }
ul { margin: 7px 0 20px; padding-left: 24px; }
li { margin: 7px 0; }
.updated { margin: 17px 0 30px; color: var(--muted); font-size: 0.86rem; }
.legal-lead {
  margin: 0 0 42px;
  max-width: 760px;
  color: #3e5057;
  font-size: 1.13rem;
}
.legal-section { padding-top: 1px; border-top: 1px solid var(--line); }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-note {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 3px solid #1f9c7c;
  background: var(--mint-soft);
  border-radius: 0 14px 14px 0;
  color: #24453d;
}
.legal-note strong { color: var(--ink); }
.contact-card {
  margin-top: 22px;
  padding: 24px;
  background: var(--ink);
  color: #dbe5e7;
  border-radius: 17px;
}
.contact-card strong { display: block; color: #fff; margin-bottom: 5px; }
.contact-card a { color: var(--mint); }
.legal-footer { background: var(--ink); color: #8ea0a7; padding: 34px 0; }
.legal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  font-size: 0.8rem;
}
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 20px; }
.legal-footer a { color: #cbd6d9; text-decoration: none; }
.legal-footer a:hover { color: var(--mint); }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .legal-shell, .legal-article { width: min(calc(100% - 28px), var(--max)); }
  .legal-nav { min-height: 78px; }
  .legal-logo { width: 132px; }
  .back-link { padding: 8px 12px; font-size: 0.8rem; }
  .legal-main { padding: 46px 0 70px; }
  .legal-article { border-radius: 20px; }
  h2 { margin-top: 40px; }
  .legal-footer-row { flex-direction: column; }
  .legal-footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
