:root {
  --bg: #eef7ff;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: rgba(255, 255, 255, 0.96);
  --text: #172033;
  --muted: #5f6d87;
  --line: rgba(23, 32, 51, 0.10);
  --primary: #16a34a;
  --primary-dark: #15803d;
  --amber: #f7b731;
  --amber-soft: #fffbeb;
  --sky-soft: #f0f9ff;
  --sky-border: #bae6fd;
  --sky-text: #075985;
  --shadow: 0 20px 60px rgba(12, 22, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #d7eeff 0%, #eef8ff 18%, #f7fcf6 100%);
}
a { color: #0b68c8; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  height: 8px;
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 50%, #4ade80 100%);
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand-stack { display: grid; gap: 4px; }
.brand { font-size: 1.6rem; font-weight: 900; color: var(--text); }
.brand-subtitle { margin: 0; color: var(--muted); font-size: 0.95rem; }
.header-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,0.88);
  color: #334155;
  font-weight: 700;
}
.header-link:hover { text-decoration: none; background: white; }
.main-area { padding: 30px 0 80px; }
.page-shell { display: grid; gap: 18px; }
.legal-nav-card,
.hero-card,
.content-card,
.notice-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.legal-nav-card { padding: 20px 22px; }
.legal-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.legal-nav-head h2 { margin: 0; font-size: 1.15rem; }
.legal-nav-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--amber-soft);
  color: #92400e;
  font-size: .85rem;
  font-weight: 700;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23,32,51,.08);
  background: rgba(255,255,255,0.8);
  color: var(--text);
  font-weight: 600;
}
.nav-link:hover { text-decoration: none; background: white; }
.nav-link.is-active { background: var(--primary); color: white; border-color: var(--primary); }
.hero-card { padding: 30px; }
.content-card { padding: 28px; }
.notice-card { padding: 18px 20px; border-left: 6px solid var(--amber); }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: #eefaf1; color: var(--primary-dark); font-size: 0.9rem; font-weight: 700;
}
.page-title { margin: 14px 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.page-intro { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; max-width: 76ch; }
.meta-grid { margin-top: 18px; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meta-item { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(248,252,255,0.85); }
.meta-item h3 { margin: 0 0 8px; font-size: 1rem; }
.meta-item p { margin: 0; color: var(--muted); line-height: 1.7; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-nav a { padding: 10px 14px; border-radius: 999px; background: #eef7ff; border: 1px solid #dcecff; color: var(--text); font-weight: 600; }
.doc-nav a:hover { text-decoration: none; background: white; }
.legal-content h2 { margin: 34px 0 14px; font-size: 1.5rem; }
.legal-content h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.legal-content p, .legal-content li { color: #33415c; line-height: 1.85; }
.legal-content ul,
.legal-content ol { padding-left: 22px; }
.legal-content strong { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.table-wrap table { width: 100%; border-collapse: collapse; background: white; }
.table-wrap th, .table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap thead th { background: #f5fbff; font-size: 0.92rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 0.9rem; }
.badge.warn { background: #fff5dd; color: #946200; }
.badge.info { background: #ecf7ff; color: #0b68c8; }
.badge.safe { background: #eefaf1; color: var(--primary-dark); }
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.contact-card { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255,255,255,0.78); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid rgba(23, 32, 51, 0.15); border-radius: 16px; background: white;
  padding: 14px 16px; font: inherit; color: var(--text);
}
.field textarea { min-height: 180px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--line); }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; }
.alert.success { background: #eefaf1; color: var(--primary-dark); border: 1px solid rgba(25,163,74,0.18); }
.alert.error { background: #fff1f1; color: #9f2e2e; border: 1px solid rgba(214,79,79,0.18); }
.site-footer {
  padding: 22px 20px 26px;
  border-top: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  color: #334155;
  font-size: 14px;
}
.footer-brand strong {
  color: #0f172a;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}
.footer-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.footer-nav a:hover { color: #059669; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 22px;
  background: rgba(15,23,42,0.94);
  color: white;
  box-shadow: 0 20px 60px rgba(15,23,42,0.22);
}
.cookie-banner__text strong { display: block; margin-bottom: 6px; }
.cookie-banner__text p { margin: 0; color: rgba(255,255,255,0.82); line-height: 1.6; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-btn-primary {
  background: var(--primary);
  color: white;
}
.cookie-btn-primary:hover { background: var(--primary-dark); }
.cookie-btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: white;
}
.hidden { display: none !important; }
@media (min-width: 780px) {
  .footer-inner,
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }
  .footer-inner { align-items: center; }
}
@media (max-width: 900px) {
  .header-inner,
  .legal-nav-head,
  .contact-grid,
  .meta-grid,
  .form-row { grid-template-columns: 1fr; }
  .header-inner,
  .legal-nav-head { display: grid; }
  .contact-grid,
  .meta-grid,
  .form-row { display: grid; }
  .header-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .hero-card, .content-card, .notice-card, .legal-nav-card { padding: 22px; border-radius: 22px; }
  .site-header { position: static; }
  .container { width: min(1180px, calc(100% - 24px)); }
}
