:root {
  --primary: #0047D6;
  --primary-dark: #003397;
  --primary-light: #EAF5FF;
  --secondary: #F8FBFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --surface: #FFFFFF;
  --footer-bg: #071425;
  --footer-muted: #94A3B8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --layout-max: 1320px;
}

/* Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--secondary);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li,
p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 40px;
  min-height: 76px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 42px;
  height: auto;
}

.header-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Hero */
.hero {
  width: 100%;
  padding: 64px 0 80px;
  background: radial-gradient(circle at top, rgba(234, 245, 255, 0.3), transparent 30%),
    linear-gradient(180deg, #0047D6 0%, #EAF5FF 100%);
}

.hero-shell {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: 80px;
  height: auto;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-copy {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.07rem;
}
.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.hero-copy {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
}

.hero-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Main content */
.main-content {
  width: 100%;
  padding: 72px 0 96px;
}

.content-shell {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
}

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
}

.toc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.toc-heading {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.toc-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  transition: color 160ms ease, transform 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
}

.toc-nav a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(15,23,42,0.06);
}

.toc-nav a:hover,
.toc-nav a:focus-visible {
  color: var(--primary);
  transform: translateX(4px);
  outline: none;
}

.toc-nav a:focus-visible::before,
.toc-nav a:hover::before {
  background: var(--primary);
  border-color: var(--primary);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 48px;
  max-width: 980px;
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.legal-meta .meta-label {
  background: var(--secondary);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.legal-meta .meta-date {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.terms-section {
  border-top: 1px solid var(--border);
  padding: 44px 0 0;
}

.terms-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.terms-section h2,
.terms-section h3 {
  margin: 0 0 24px;
  color: var(--primary);
  font-weight: 700;
}

.terms-section h2 {
  font-size: 30px;
  line-height: 1.1;
}

.terms-section h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.terms-section p,
.definition-list dd,
.feature-list li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.terms-section p {
  margin: 0 0 24px;
  max-width: 72ch;
}

.definition-list {
  display: grid;
  gap: 20px;
  padding-left: 0;
}

.definition-list dt {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.definition-list dd {
  margin: 0;
}

.feature-list {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 16px;
  list-style: disc;
}

.feature-list li {
  margin: 0;
  line-height: 1.75;
}

.contact-panel {
  display: block;
}

.contact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.04);
}
.contact-card .logo-slot {
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, rgba(0,71,214,0.08), rgba(234,245,255,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.contact-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-rows {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-row svg {
  flex: 0 0 18px;
  margin-top: 2px;
  color: var(--muted);
}
.contact-row a {
  color: var(--text);
  font-weight: 600;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  outline: none;
}

.acknowledgment-section {
  padding-top: 36px;
}

/* Footer */
.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #071425 0%, #06111f 100%);
  color: #F8FAFF;
  padding: 48px 0 40px;
}

.footer-shell {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  margin-bottom: 32px;
}

.footer-card {
  display: grid;
  gap: 18px;
}

.footer-brand-card {
  grid-template-columns: auto 1fr;
  display: grid;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  width: 38px;
  height: auto;
  margin-top: 2px;
}

.footer-copy,
.footer-title,
.footer-list,
.footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
}

.footer-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.footer-copy {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.footer-card:not(.footer-brand-card) p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-list li a {
  color: var(--footer-muted);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.footer-list li a:hover,
.footer-list li a:focus-visible {
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: #64748B;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .content-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-shell {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .legal-content {
    padding: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-shell {
    padding: 0 24px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-shell {
    padding: 0 24px;
  }

  .content-shell {
    padding: 0 24px;
  }

  .legal-content {
    padding: 32px;
  }
}

@media (max-width: 576px) {
  .header-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 18px;
    min-height: auto;
  }

  .hero {
    padding: 42px 0 56px;
  }

  .hero-shell {
    padding: 0 18px;
  }

  .hero-logo {
    width: 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

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

  .content-shell {
    padding: 0 18px;
  }

  .legal-content {
    padding: 28px;
  }

  .footer-shell {
    padding: 0 18px;
  }

  .footer-bottom {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .legal-content {
    padding: 24px;
  }
}
