:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #17202a;
  --muted: #5d6978;
  --border: #dbe3ed;
  --accent: #1f6feb;
  --accent-dark: #164ea6;
  --shadow: 0 18px 50px rgba(20, 32, 48, 0.12);
  --radius: 8px;
  --content-width: 1120px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.site-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 400px;
  height: 150px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.contact-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.policy-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 32px 0 0;
}

.policy-meta div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.page-shell {
  width: min(100% - 32px, var(--content-width));
  margin: 40px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.toc a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.policy-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-section {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.policy-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.policy-section p {
  margin: 0 0 16px;
}

.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.policy-section li + li {
  margin-top: 10px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.permission-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.permission-grid p {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .policy-meta,
  .page-shell,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 64px;
  }

  .brand img {
    width: 140px;
    height: 48px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .policy-section {
    padding: 24px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .topbar,
  .toc,
  .site-footer {
    display: none;
  }

  .hero,
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero {
    padding: 0 0 24px;
  }

  .policy-card {
    border: 0;
    box-shadow: none;
  }

  .policy-section {
    break-inside: avoid;
    padding: 20px 0;
  }
}
