/* Privacy page (version 9): a calm, readable notice. Loaded before modern.css, so rules are scoped under the page's
   own classes (.privacy-head, .privacy, .policy, .privacy-toc). Tokens only, light theme only.
     1  page header: the notice at a glance, a glass card inside a slowly turning orbit
     2  the notice: a sticky contents card (from 1024) beside eight numbered sections, each with its icon disc
     3  motion (gated on html.motion; reduced motion shows everything settled) */

/* ==========================================================================================================
   1. Page header
   ========================================================================================================== */

.privacy-head h1 { max-width: 14ch; }
.privacy-head .lede { text-wrap: pretty; }

.privacy-glance { position: relative; isolation: isolate; max-width: 460px; margin-inline: auto; padding: 36px 0; }
.privacy-glance__orbit {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1px solid var(--rule-ink); pointer-events: none;
}
.privacy-glance__orbit::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; border: 1px dashed rgba(14, 42, 58, 0.14); }
.privacy-glance__orbit i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(1, 109, 150, 0.25); }
.privacy-glance__orbit i:nth-child(1) { left: 50%; top: 0; }
.privacy-glance__orbit i:nth-child(2) { left: 6.7%; top: 75%; background: var(--mint); border-color: #fff; }
.privacy-glance__card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-lg);
}
.privacy-glance__title {
  display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink);
}
.privacy-glance__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; }
.privacy-glance__badge .icon { width: 22px; height: 22px; }
.privacy-glance__list { list-style: none; margin: 0; padding: 0; display: grid; }
.privacy-glance__list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.privacy-glance__list li + li { border-top: 1px solid var(--rule); }
.privacy-glance__ico { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; flex: none; background: var(--mint); color: var(--ink); }
.privacy-glance__ico .icon { width: 14px; height: 14px; }
.privacy-glance__list b { display: block; font-size: 0.9875rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.privacy-glance__list li > span:last-child > span:last-child { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* The shared header grid is one column until 1024, so the tablet split sets the twelve columns itself. */
  .privacy-head .pagehead__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .privacy-head .pagehead__text { grid-column: 1 / span 6; grid-row: 2; align-self: center; }
  .privacy-head .pagehead__visual { grid-column: 7 / span 6; grid-row: 2; margin-top: 0; align-self: center; }
}
@media (min-width: 1024px) { .privacy-head .pagehead__visual { grid-column: 8 / span 5; } }
@media (max-width: 767.98px) { .privacy-glance { padding: 20px 0 0; } .privacy-glance__orbit { width: 104%; } }

/* ==========================================================================================================
   2. The notice
   ========================================================================================================== */

.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .privacy__grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .privacy__side { position: sticky; top: calc(var(--header-h) + 32px); z-index: 2; }
}
@media (min-width: 1200px) { .privacy__grid { grid-template-columns: minmax(0, 316px) minmax(0, 1fr); gap: 96px; } }

/* Contents: a soft card with numbered rows, each at least 44 px. */
.privacy-toc { padding: 22px 18px 14px; border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); }
.privacy-toc__h { margin: 0 6px 10px; font-family: var(--display); font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.privacy-toc__list { list-style: none; margin: 0; padding: 0; display: grid; }
.privacy-toc__list a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 12px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.privacy-toc__list a .policy__num { width: 30px; height: 30px; font-size: 0.75rem; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.privacy-toc__list a:hover { background: #fff; color: var(--accent); }
.privacy-toc__list a:hover .policy__num { background: var(--ink); color: #fff; box-shadow: none; }

/* The call card under the contents. */
.privacy-call { margin-top: 16px; padding: 20px 20px 18px; border-radius: var(--r-card); background: var(--mint-soft); }
.privacy-call__label { font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.privacy-call__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; font-family: var(--display); font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.privacy-call__phone .icon { width: 20px; height: 20px; color: var(--accent); }
.privacy-call__phone:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.privacy-call__status { font-size: 0.875rem; color: var(--muted); }

/* Phones and tablets: the contents lead the notice as a two-column index; the call card waits for the band below. */
@media (max-width: 1023.98px) {
  .privacy-call { display: none; }
  .privacy-toc { padding: 18px 12px 10px; }
}
@media (min-width: 560px) and (max-width: 1023.98px) {
  .privacy-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 8px; }
}

/* The sections: an icon disc and the numbered heading, the text under it at a reading measure, hairlines between. */
.policy { max-width: 760px; }
.policy__sec { padding-block: 34px; }
.policy__sec:first-child { padding-top: 0; }
.policy__sec + .policy__sec { border-top: 1px solid var(--rule); }
.policy__head { display: flex; align-items: center; gap: 16px; }
.policy__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--mint); color: var(--ink); transition: background-color 400ms var(--ease-apex), color 400ms var(--ease-apex); }
.policy__icon .icon { width: 24px; height: 24px; }
.policy h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 32px); }
.policy__num {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint); color: var(--accent); font-family: var(--display); font-size: 0.8125rem; font-weight: 750; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.policy h2 .policy__num { display: none; }
.policy p { margin-top: 16px; max-width: 64ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text); text-wrap: pretty; }
@media (min-width: 768px) {
  .policy p { padding-left: 68px; }
  .policy__sec { padding-block: 40px; }
}
/* The section a contents link landed on: its icon disc turns ink. */
.policy__sec:has(:target) .policy__icon { background: var(--ink); color: #fff; }
/* The only action in the notice: the inline phone link in section 8 gets a 44 px tall tap area without moving the line. */
.policy a[href^="tel:"] { display: inline-block; padding-block: 10px; margin-block: -10px; }
.policy .nowrap { white-space: nowrap; }

/* ==========================================================================================================
   3. Motion
   ========================================================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.motion .privacy-head .privacy-glance__card { animation: pw-rise 680ms var(--ease-apex) 180ms backwards; }
  html.motion .privacy-head .privacy-glance__list li { animation: pw-skew-in 700ms var(--ease-apex) backwards; }
  html.motion .privacy-head .privacy-glance__list li:nth-child(1) { animation-delay: 650ms; }
  html.motion .privacy-head .privacy-glance__list li:nth-child(2) { animation-delay: 750ms; }
  html.motion .privacy-head .privacy-glance__list li:nth-child(3) { animation-delay: 850ms; }
  html.motion .privacy-head .privacy-glance__list li:nth-child(4) { animation-delay: 950ms; }
  html.motion .privacy-head .privacy-glance__orbit { animation: pw-scale-in 680ms var(--ease-apex) 270ms backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-glance__orbit { animation: none !important; }
}
