:root {
  color: #0f172a;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #0f172a;
  --blue: #2563eb;
  --muted: #64748b;
  --line: #e2e8f0;
  --content: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-width: 320px; margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #1d4ed8; }
a:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 3px; border-radius: 3px; }
.legal-header { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(calc((100vw - var(--content)) / 2), 24px); border-bottom: 1px solid #edf1f6; background: #ffffffed; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 18px; font-weight: 780; letter-spacing: -.04em; }
.brand img { display: block; }
.brand-blue { color: var(--blue); }
.header-link { color: #475569; font-size: 13px; font-weight: 650; }
.header-link span { margin-left: 5px; color: var(--blue); }
.legal-wrap { width: min(100% - 48px, var(--content)); margin: 0 auto; padding: 22px 0 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 37px; color: #94a3b8; font-size: 12px; }
.breadcrumbs a { color: #64748b; }
.legal-hero { padding: 0 0 31px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 13px 0 12px; font-size: clamp(36px, 6vw, 54px); line-height: 1.05; letter-spacing: -.055em; }
.lead { max-width: 690px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 6vw, 76px); align-items: start; padding-top: 38px; }
.legal-toc { position: sticky; top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.legal-toc strong { margin-bottom: 3px; color: #334155; font-size: 12px; }
.legal-toc a { color: #64748b; font-size: 12px; }
.legal-toc a:hover { color: var(--blue); }
.legal-content { max-width: 720px; }
.legal-content section { margin: 0 0 30px; scroll-margin-top: 24px; }
.legal-content h2 { margin: 0 0 11px; color: var(--navy); font-size: 20px; letter-spacing: -.025em; }
.legal-content p { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.8; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { font-weight: 650; }
.privacy-note { display: flex; gap: 13px; align-items: center; margin: 28px 0 0 190px; padding: 16px 18px; border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; color: #334155; font-size: 13px; line-height: 1.6; }
.privacy-note strong { flex: 0 0 auto; color: #1d4ed8; }
.terms-content { max-width: 760px; padding-top: 36px; }
.terms-content section { padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.faq-content { max-width: 790px; padding-top: 34px; }
.faq-content section { margin-bottom: 0; padding: 20px 0; border-bottom: 1px solid #eef2f7; }
.faq-content h2 { font-size: 17px; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px max(calc((100vw - var(--content)) / 2), 24px); border-top: 1px solid #edf1f6; color: #94a3b8; font-size: 11px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-footer a { color: #64748b; }

@media (max-width: 700px) {
  .legal-header { height: 64px; padding: 0 18px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand img { width: 29px; height: 29px; }
  .header-link { font-size: 11px; }
  .legal-wrap { width: min(100% - 36px, var(--content)); padding-top: 17px; }
  .breadcrumbs { margin-bottom: 28px; font-size: 11px; }
  .legal-hero { padding-bottom: 24px; }
  .lead { font-size: 15px; }
  .legal-layout { grid-template-columns: 1fr; gap: 25px; padding-top: 25px; }
  .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .legal-toc strong { grid-column: 1 / -1; }
  .legal-content h2 { font-size: 18px; }
  .legal-content p { font-size: 13px; }
  .privacy-note { margin-left: 0; align-items: flex-start; flex-direction: column; gap: 4px; }
  .terms-content, .faq-content { padding-top: 25px; }
  .legal-footer { align-items: flex-start; flex-direction: column; padding: 18px; }
}

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