:root {
  --navy: #0b1d3a;
  --navy-2: #17396d;
  --gold: #f0a500;
  --gold-2: #ffbf3c;
  --gold-pale: #fff4d6;
  --ink: #132238;
  --ink-soft: #4d5b71;
  --line: rgba(11, 29, 58, 0.1);
  --surface: #f5f8fc;
  --white: #ffffff;
  --success: #0ea76b;
  --shadow: 0 28px 70px rgba(11, 29, 58, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 165, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.legal-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-link img {
  width: 138px;
  height: auto;
}

.brand-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(11, 29, 58, 0.05);
  border: 1px solid rgba(11, 29, 58, 0.08);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.back-home:hover {
  transform: translateY(-1px);
  background: rgba(11, 29, 58, 0.08);
  border-color: rgba(11, 29, 58, 0.12);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-main,
.hero-side,
.legal-card,
.legal-article,
.legal-footer {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 29, 58, 0.07);
  box-shadow: var(--shadow);
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 34px;
}

.hero-main::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.18), transparent 68%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 165, 0, 0.12);
  color: #9b6900;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-main h1 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 12ch;
}

.hero-main p {
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(11, 29, 58, 0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-side {
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.side-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 29, 58, 0.5);
}

.side-stack {
  display: grid;
  gap: 12px;
}

.fact {
  padding: 14px 15px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(11, 29, 58, 0.06);
}

.fact strong {
  display: block;
  font-size: 0.82rem;
  color: rgba(11, 29, 58, 0.55);
  margin-bottom: 6px;
}

.fact span {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.notice {
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.96), rgba(23, 57, 109, 0.96));
  color: rgba(255, 255, 255, 0.82);
}

.notice strong {
  color: white;
  display: block;
  margin-bottom: 8px;
}

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

.legal-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
}

.legal-card {
  border-radius: 26px;
  padding: 22px;
}

.card-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 29, 58, 0.5);
  margin-bottom: 14px;
}

.toc {
  display: grid;
  gap: 10px;
}

.toc a {
  display: block;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(11, 29, 58, 0.05);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.toc a:hover {
  transform: translateX(3px);
  background: rgba(240, 165, 0, 0.08);
  border-color: rgba(240, 165, 0, 0.2);
}

.mini-copy {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.legal-article {
  border-radius: 32px;
  padding: 18px;
}

.policy-section {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.28rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.policy-section p,
.policy-section li,
.policy-section td {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.policy-section p + p,
.policy-section ul,
.policy-section ol,
.policy-section .table-wrap,
.policy-section .section-note {
  margin-top: 14px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 20px;
}

.section-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(240, 165, 0, 0.08);
  border: 1px solid rgba(240, 165, 0, 0.16);
}

.section-note strong {
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(11, 29, 58, 0.54);
  background: var(--surface);
}

tr:last-child td {
  border-bottom: none;
}

.legal-footer {
  margin-top: 24px;
  border-radius: 28px;
  padding: 24px;
}

.legal-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.legal-footer a {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(11, 29, 58, 0.05);
  color: var(--navy);
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.legal-footer a small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-footer a:hover {
  transform: translateY(-2px);
  background: rgba(240, 165, 0, 0.08);
}

@media (max-width: 960px) {
  .legal-hero,
  .legal-layout,
  .legal-footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 18px 14px 40px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-main,
  .hero-side,
  .legal-card,
  .legal-article,
  .legal-footer {
    border-radius: 24px;
  }

  .hero-main,
  .hero-side,
  .legal-card,
  .legal-footer {
    padding: 20px;
  }

  .legal-article {
    padding: 10px;
  }

  .policy-section {
    padding: 18px 12px;
  }
}
