:root {
  --navy: #052b59;
  --navy-deep: #031d3d;
  --green: #178b22;
  --green-soft: #eaf8e6;
  --ink: #0a2747;
  --muted: #607086;
  --line: #dfe9e2;
  --cream: #f7faf7;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
a { color: var(--green); text-underline-offset: 3px; }
.container { width: min(900px, calc(100% - 36px)); margin: 0 auto; }
.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.legal-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 43px; height: 43px; border-radius: 12px; }
.brand b { color: var(--green); }
.back-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-hero {
  padding: 70px 0 48px;
  color: white;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 65%, #0c6544);
}
.legal-hero p:first-child {
  margin: 0 0 10px;
  color: #8ddd69;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.legal-hero .intro { max-width: 720px; margin: 20px 0 0; color: #c5d4e2; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; padding: 55px 0 90px; }
.legal-toc { position: sticky; top: 24px; align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.legal-toc strong { display: block; margin-bottom: 10px; font-size: 13px; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-toc a:hover { color: var(--green); }
.legal-content { min-width: 0; padding: 38px 42px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.legal-content section + section { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
h3 { margin: 24px 0 8px; font-size: 17px; }
p { margin: 0 0 14px; }
ul { margin: 10px 0 16px; padding-left: 22px; }
li + li { margin-top: 7px; }
.updated { color: var(--muted); font-size: 13px; }
.notice {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid #d69b00;
  border-radius: 8px 14px 14px 8px;
  color: #624a08;
  background: #fff7d8;
}
.legal-card { padding: 20px; border-radius: 16px; background: var(--green-soft); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-footer { padding: 35px 0; color: #b7c7d6; background: var(--navy-deep); }
.legal-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal-footer a { color: white; }

@media (max-width: 760px) {
  .legal-nav { min-height: 68px; }
  .legal-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .legal-toc { position: static; }
  .legal-content { padding: 28px 22px; }
  .legal-hero { padding: 52px 0 38px; }
}
