/* Styles for /privacy, moved out of the page's <style> block
   because the site's Content-Security-Policy allows only
   stylesheets served from here. Otherwise unchanged from
   hosting/public/privacy/index.html. */

:root {
  color-scheme: light;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5f6b7d;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --border: #dce4ef;
  --notice: #f8fafc;
  --shadow: 0 18px 48px rgba(30, 64, 175, 0.10);
  --radius: 18px;
  --content-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: white;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.header-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, var(--content-width));
  justify-content: center;
  align-items: start;
  gap: 36px;
}

.toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 4px;
}

.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

main {
  min-width: 0;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.effective-date {
  display: inline-block;
  margin: 20px 0 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: var(--notice);
  font-weight: 650;
}

section {
  padding-top: 28px;
}

section + section {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin: 24px 0 10px;
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.35;
}

.heading-link {
  margin-left: 8px;
  color: transparent;
  font-weight: 500;
  text-decoration: none;
}

h2:hover .heading-link,
.heading-link:focus {
  color: var(--primary);
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 8px 0 20px;
  padding-left: 1.4rem;
}

li {
  padding-left: 0.25rem;
}

li + li {
  margin-top: 6px;
}

strong {
  color: #0f172a;
}

.back-to-top {
  display: inline-flex;
  margin-top: 34px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: minmax(0, 780px);
    margin-top: 24px;
  }

  .toc {
    position: static;
    max-height: 280px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 20px, 780px);
  }

  .header-label {
    display: none;
  }

  .page-shell {
    gap: 16px;
    margin-bottom: 28px;
  }

  main {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .toc {
    padding: 16px;
  }
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .site-header,
  .toc,
  .site-footer,
  .back-to-top,
  .heading-link {
    display: none !important;
  }

  .page-shell {
    display: block;
    width: auto;
    margin: 0;
  }

  main {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  section {
    break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
  }

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