:root {
  --navy: #1a1d3a;
  --navy-deep: #13162e;
  --navy-soft: #252a52;
  --mint: #4DBA9A;
  --white: #F5F5F5;
  --white-bright: #FFFFFF;
  --cream: #F5F5F5;
  --line: rgba(77,186,154,0.18);
  --line-strong: rgba(77,186,154,0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

.legal-nav {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line);
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.legal-nav a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white-bright);
}
.legal-nav .brand-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal-nav .brand-text .accent { color: var(--mint); }
.legal-nav a.back {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: all 0.2s;
}
.legal-nav a.back:hover {
  background: var(--mint);
  color: var(--navy-deep);
  border-color: var(--mint);
}

main.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.legal-wrap h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white-bright);
  margin-bottom: 8px;
}
.legal-wrap .last-update {
  color: rgba(245,245,245,0.6);
  font-size: 14px;
  margin-bottom: 48px;
}
.legal-wrap h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--mint);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.legal-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white-bright);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-wrap p {
  margin-bottom: 16px;
  color: rgba(245,245,245,0.85);
}
.legal-wrap ul {
  margin: 0 0 16px 24px;
  color: rgba(245,245,245,0.85);
}
.legal-wrap ul li { margin-bottom: 8px; }
.legal-wrap a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-wrap a:hover { color: var(--white-bright); }
.legal-wrap strong { color: var(--white-bright); }
.legal-wrap em { font-style: italic; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.legal-table th, .legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--navy-soft);
  font-weight: 700;
  color: var(--white-bright);
}
.legal-table tr:last-child td { border-bottom: none; }

footer.legal-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(245,245,245,0.6);
}
footer.legal-footer .legal-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer.legal-footer a {
  color: var(--cream);
  text-decoration: none;
}
footer.legal-footer a:hover { color: var(--mint); }

@media (max-width: 640px) {
  .legal-nav { padding: 16px 20px; }
  main.legal-wrap { padding: 40px 20px 64px; }
  .legal-wrap h2 { font-size: 24px; margin-top: 32px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
  footer.legal-footer .legal-links { gap: 14px; flex-direction: column; }
}
