/* =========================================================
   Modal: About and Privacy pages
   Builds on styles.css (tokens, nav, buttons, footer) and
   terms.css (page header, crumbs, callouts, contact card).
   ========================================================= */

/* Keep longer titles clear of the floating cubes, in line with the lead below */
.legal-hero h1 { max-width: 620px; text-wrap: balance; }

/* ---------- Sections: heading on the left, reading column on the right ---------- */
.page-body { padding-top: 64px; padding-bottom: 40px; }
.page-sec {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 680px);
  gap: 20px 72px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.page-sec:first-child { padding-top: 0; border-top: 0; }
.page-sec h2 {
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
.page-sec .body > :first-child { margin-top: 0; }
.page-sec .body > * + * { margin-top: 18px; }
.page-sec .body > p,
.page-sec .bullets > li {
  font-size: 16.5px; line-height: 1.75;
  color: var(--doc-text);
  text-wrap: pretty;
}
.page-sec .body strong, .page-sec .body b { color: var(--text); font-weight: 600; }
.page-sec .bullets { margin: 0; }
.page-sec .body > * + .callout, .page-sec .body > * + .contact-card,
.page-sec .body > .contact-card + * { margin-top: 26px; }

.page-sec .standfirst {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-body a:not(.btn):not(.contact-mail) {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(94, 200, 248, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.page-body a:not(.btn):not(.contact-mail):hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- About: loaders ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}
.chips .ld { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* ---------- About: what we care about ---------- */
.principles { display: grid; }
.principles > div { padding: 24px 0; border-top: 1px solid var(--border); }
.principles > div:first-child { padding-top: 0; border-top: 0; }
.principles dt {
  display: flex; align-items: center; gap: 14px;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.01em;
}
.p-ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(94, 200, 248, .18);
  color: var(--accent);
}
.p-ic .ic { width: 19px; height: 19px; }
.principles dd {
  margin-top: 8px; padding-left: 54px;
  font-size: 16px; line-height: 1.7;
  color: var(--doc-text);
  text-wrap: pretty;
}

/* ---------- Privacy: where your data goes ---------- */
.dataflow-wrap { margin-top: 56px; }
.dataflow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}
.df-panel {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.df-pc {
  background:
    radial-gradient(circle at 0% 0%, rgba(94, 200, 248, .14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(94, 200, 248, .28);
}
.df-head { display: flex; align-items: center; gap: 14px; }
.df-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(94, 200, 248, .2);
  color: var(--accent);
}
.df-ic .ic { width: 21px; height: 21px; }
.df-pc .df-ic { background: linear-gradient(160deg, #7dd4fb, var(--accent)); border: 0; color: var(--accent-ink); }
.df-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.df-head p { margin-top: 2px; font-size: 14px; color: var(--muted); }

.df-list { margin-top: 22px; display: grid; gap: 12px; }
.df-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.df-list .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); stroke-width: 2.4; }

.df-services { margin-top: 22px; display: grid; }
.df-services li {
  display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.df-services li:first-child { padding-top: 0; border-top: 0; }
.df-services b { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.df-services span { font-size: 15px; line-height: 1.55; color: var(--muted); }

.df-us {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
}
.df-us .df-ic { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); color: var(--muted); }
.df-us p { font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.df-us b { color: var(--text); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 44px 0; }
  .dataflow { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .page-body { padding-top: 48px; }
  .df-panel { padding: 22px; }
  .df-services li { grid-template-columns: minmax(0, 1fr); }
  .df-us { align-items: flex-start; padding: 18px 20px; }
  .principles dd { padding-left: 0; }
}

/* ---------- Print ---------- */
@media print {
  .legal-deco, .legal-actions, .motion-toggle { display: none !important; }
  .page-sec { display: block; padding: 14pt 0; border-color: #ddd; }
  .page-sec h2, .df-head h3, .principles dt { color: #000; margin-bottom: 6pt; }
  .page-sec .body > p, .page-sec .bullets > li, .principles dd, .df-list li, .df-services span, .df-us p { color: #222 !important; }
  .df-panel, .df-us, .chips li { background: none !important; border-color: #ccc !important; }
}
