:root {
  color-scheme: light;
  --navy: #0f2d52;
  --blue: #1e5eff;
  --sky: #3db8ef;
  --ink: #15243a;
  --muted: #5f6f85;
  --line: #dce6f2;
  --soft: #f4f8fc;
  --success: #087a47;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; padding: 10px 14px; background: #fff; }
.legal-header { border-bottom: 1px solid var(--line); background: #fff; }
.nav-shell, .legal-shell, .legal-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 22px; font-weight: 800; }
.legal-brand img { width: 38px; height: 38px; object-fit: contain; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.legal-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--blue); }
.legal-hero { padding: 64px 0 38px; background: var(--soft); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { color: var(--navy); line-height: 1.18; }
h1 { max-width: 820px; margin: 0; font-size: clamp(36px, 5vw, 58px); }
.hero-copy { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.legal-main { padding: 44px 0 72px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 52px; align-items: start; }
.legal-content { min-width: 0; }
.legal-content section { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 12px; font-size: 25px; }
.legal-content h3 { margin: 22px 0 8px; font-size: 18px; }
.legal-content p, .legal-content ul { margin-top: 0; }
.legal-content li + li { margin-top: 7px; }
.legal-aside { position: sticky; top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.legal-aside strong { display: block; margin-bottom: 10px; color: var(--navy); }
.legal-aside a { display: block; padding: 6px 0; text-decoration: none; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.legal-card h2, .legal-card h3 { margin-top: 0; }
.legal-card p:last-child { margin-bottom: 0; }
.notice { padding: 18px; border-left: 4px solid var(--blue); background: #eef4ff; }
.success-notice { border-left-color: var(--success); background: #eaf8f1; color: #075b37; }
.form-shell { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .check-field { font-weight: 750; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #b9c8d9;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #c8dcff; border-color: var(--blue); }
.check-field { display: flex; align-items: flex-start; gap: 10px; }
.check-field input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.form-help { color: var(--muted); font-size: 14px; }
.primary-button {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.primary-button:disabled { opacity: .6; cursor: wait; }
.form-result { display: none; margin-top: 18px; padding: 14px; border-radius: 6px; }
.form-result.visible { display: block; }
.form-result.success { background: #eaf8f1; color: #075b37; }
.form-result.error { background: #fff0ef; color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--navy); color: #dce8f7; }
.legal-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal-footer a { color: #fff; }

@media (max-width: 820px) {
  .nav-shell { align-items: flex-start; padding: 16px 0; }
  .legal-nav { justify-content: flex-end; gap: 10px 14px; }
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-aside { position: static; order: -1; }
  .legal-grid, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}

@media (max-width: 560px) {
  .nav-shell { display: grid; }
  .legal-nav { justify-content: flex-start; }
  .legal-hero { padding-top: 42px; }
  .nav-shell, .legal-shell, .legal-footer-inner { width: min(100% - 28px, 1120px); }
  .form-shell { padding: 20px; }
}
