:root {
  --ink: #1a1a2e;
  --muted: #5f6675;
  --line: #dfe3e8;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --yellow: #e8b923;
  --yellow-deep: #805d00;
  --navy: #17213d;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(232, 185, 35, 0.65);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.legal-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.legal-main,
.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy { display: grid; line-height: 1.18; }
.brand-copy strong { font-size: 18px; letter-spacing: 0; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a {
  color: var(--ink);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.legal-main { padding: 48px 0 64px; }

.legal-intro {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 { color: var(--ink); line-height: 1.2; }

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
}

.legal-intro p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-sheet {
  margin-top: 28px;
  padding: 34px clamp(20px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-sheet > *:first-child { margin-top: 0; }

.legal-sheet h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.legal-sheet h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.legal-sheet p { margin: 0 0 14px; }
.legal-sheet ul,
.legal-sheet ol { margin: 0 0 18px; padding-left: 22px; }
.legal-sheet li + li { margin-top: 8px; }

.legal-sheet a {
  color: #265b84;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.operator-grid div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.operator-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.operator-grid div:last-child,
.operator-grid div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.operator-grid .full { grid-column: 1 / -1; border-right: 0; }
.operator-grid dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.operator-grid dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  background: #fff9e7;
}

.notice p:last-child { margin-bottom: 0; }

.legal-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 94px;
  font-size: 14px;
}

.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-inner a { color: #fff; text-decoration-color: var(--yellow); text-underline-offset: 4px; }

@media (max-width: 680px) {
  .header-inner,
  .legal-main,
  .footer-inner { width: min(100% - 32px, var(--max-width)); }
  .header-inner { min-height: 68px; align-items: flex-start; padding: 10px 0; }
  .brand img { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 16px; }
  .legal-nav { justify-content: flex-start; gap: 8px 14px; padding-top: 8px; font-size: 13px; }
  .legal-main { padding: 32px 0 44px; }
  .legal-intro p { font-size: 16px; }
  .legal-sheet { margin-top: 22px; padding: 24px 18px; }
  .legal-sheet h2 { margin-top: 30px; font-size: 20px; }
  .operator-grid { grid-template-columns: 1fr; }
  .operator-grid div,
  .operator-grid div:nth-child(odd) { border-right: 0; }
  .operator-grid div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
