:root {
  color-scheme: light;
  --ink: #192131;
  --muted: #667085;
  --line: #e5eaf0;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --surface: #ffffff;
  --header: rgba(255,255,255,.94);
  --blue-soft: #eaf7ff;
  --blue: #1674cf;
  --pink: #e964a3;
  --shadow: 0 24px 70px rgba(34, 62, 92, .10);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f6fb;
  --muted: #a9b5c5;
  --line: #2c3746;
  --paper: #0e141d;
  --soft: #111923;
  --surface: #18212d;
  --header: rgba(14,20,29,.94);
  --blue-soft: #142a3e;
  --blue: #64b5ff;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; overflow-x: clip; color: var(--ink); background: var(--soft); font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #192131; color: white; font-weight: 800; }
.skip-link:focus { top: 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: white; font-size: 16px; font-weight: 950; background: linear-gradient(145deg, #309bea, #7f69ed 58%, #ed67a8); box-shadow: 0 10px 24px rgba(52,126,224,.22); }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); box-shadow: 0 5px 14px rgba(35,55,80,.06); font-size: 13px; font-weight: 850; transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.back-link:hover { color: var(--blue); border-color: #b9d9f6; box-shadow: 0 8px 18px rgba(35,55,80,.10); transform: translateY(-1px); }
.back-arrow { font-size: 17px; line-height: 1; transform: translateY(-1px); }
.back-label-short { display: none; }
.theme-toggle { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); box-shadow: 0 5px 14px rgba(35,55,80,.08); cursor: pointer; transition: color .18s ease, transform .18s ease, background .18s ease; }
.theme-toggle:hover { color: var(--blue); transform: translateY(-1px); }
.theme-icon { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme-mode="auto"] .theme-icon-auto,
html[data-theme-mode="light"] .theme-icon-light,
html[data-theme-mode="dark"] .theme-icon-dark { display: block; }

.policy-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 34px; padding-block: 64px 90px; }
.policy-summary { position: sticky; top: 32px; padding: 22px 8px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 4vw, 54px); line-height: 1.02; letter-spacing: -.055em; }
.policy-summary > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.updated { margin: 26px 0; display: flex; align-items: center; gap: 12px; }
.updated > span { width: 10px; height: 10px; border-radius: 50%; background: #35b779; box-shadow: 0 0 0 6px rgba(53,183,121,.12); }
.updated > div { display: grid; gap: 2px; }
.updated small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.updated strong { font-size: 13px; }
.policy-nav { display: grid; gap: 3px; padding-top: 18px; border-top: 1px solid var(--line); }
.policy-nav a { padding: 9px 11px; border-radius: 10px; color: #657186; font-size: 13px; font-weight: 750; }
.policy-nav a:hover { color: var(--blue); background: var(--blue-soft); }

.policy-card { padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.policy-card section { scroll-margin-top: 28px; margin-bottom: 46px; }
.policy-card section:last-child { margin-bottom: 0; }
.policy-card h2 { margin: 0 0 17px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.policy-card h3 { margin: 28px 0 9px; font-size: 17px; letter-spacing: -.015em; }
.policy-card p, .policy-card li { color: var(--muted); font-size: 15px; line-height: 1.76; }
.policy-card p { margin-bottom: 15px; }
.policy-card ul { margin: 0 0 16px; padding-left: 22px; }
.policy-card li { padding-left: 4px; margin-bottom: 8px; }
.notice { padding: 22px 24px; border: 1px solid #cce8fb; border-radius: 18px; background: var(--blue-soft); }
.notice strong { display: block; margin-bottom: 5px; color: #1769af; }
.notice p { margin: 0; color: #49657e; }
.children-section { padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; border-radius: 22px; background: #fff7fb; box-shadow: inset 0 0 0 1px #f4d8e7; }
.section-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #ef72af, #a76fea); box-shadow: 0 10px 22px rgba(233,100,163,.2); }
.service-list { padding: 0 !important; display: grid; gap: 10px; list-style: none; }
.service-list li { margin: 0; padding: 0; }
.service-list a { padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; }
.service-list a:hover { border-color: #b8dcf7; background: #f9fcff; }
.service-list strong { color: var(--ink); }
.service-list span { color: var(--muted); font-size: 12px; }
.contact-card { padding: 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; border-radius: 24px; color: white; background: radial-gradient(circle at 90% 0, rgba(93,198,255,.25), transparent 17rem), linear-gradient(135deg, #192131, #2c416d); }
.contact-card h2 { margin-bottom: 8px; }
.contact-card p { margin: 0; color: #cbd6e6; }
.contact-card .eyebrow { color: #8fd6ff; }
.contact-card > a { padding: 14px 18px; border-radius: 14px; color: var(--ink); background: white; font-size: 13px; font-weight: 900; }

html[data-theme="dark"] .notice { border-color: #244865; background: #13293c; }
html[data-theme="dark"] .notice strong { color: #73c5ff; }
html[data-theme="dark"] .notice p { color: #a9bfd2; }
html[data-theme="dark"] .children-section { background: #281b28; box-shadow: inset 0 0 0 1px #51304a; }
html[data-theme="dark"] .service-list a:hover { border-color: #315d7d; background: #142432; }
html[data-theme="dark"] .contact-card > a { color: #192131; }

.site-footer { padding: 24px 0 38px; color: #7a8596; font-size: 12px; }
.site-footer .shell { display: grid; grid-template-columns: auto 1fr; gap: 28px; }
.site-footer span:last-child { text-align: right; }
:focus-visible { outline: 3px solid rgba(37,133,230,.36); outline-offset: 4px; }

@media (max-width: 820px) {
  .policy-layout { grid-template-columns: 1fr; padding-top: 42px; }
  .policy-summary { position: static; padding: 0; }
  .policy-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .policy-card { border-radius: 26px; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1140px); }
  .header-inner { min-height: 74px; }
  .brand small { display: none; }
  .header-actions { gap: 8px; }
  .back-link { min-width: 78px; padding-inline: 12px 14px; border-radius: 13px; font-size: 12px; }
  .back-label-full { display: none; }
  .back-label-short { display: inline; }
  .policy-layout { padding-bottom: 56px; }
  .policy-nav { grid-template-columns: 1fr; }
  .policy-card { padding: 26px 20px; }
  .children-section { grid-template-columns: 1fr; padding: 23px 20px; }
  .service-list a { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 24px 20px; }
  .contact-card > a { text-align: center; font-size: 12px; }
  .site-footer .shell { grid-template-columns: 1fr; }
  .site-footer span:last-child { text-align: left; }
}

@media (max-width: 350px) {
  .brand > span:last-child { display: none; }
  .header-inner { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
