/* SBOS — shared styling for the legal pages (privacy policy, cookie policy).
 *
 * These four pages are deliberately plain HTML rather than x-dc documents:
 * they carry no interactivity, are edited rarely (and by non-developers), and
 * must stay readable even if the React runtime fails to load. They use the
 * same design tokens as the rest of the site, so they look native.
 */

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.pol-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--border-subtle);
}
.pol-head-in {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pol-head img { height: 44px; width: auto; display: block; }
.pol-head-links { display: flex; align-items: center; gap: 22px; }
.pol-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}
.pol-back:hover { color: var(--color-accent-ink); }
.pol-lang {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.pol-lang a {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--surface-card);
}
.pol-lang a[aria-current="true"] { background: var(--color-primary); color: #fff; }

/* ---------- document body ---------- */

.pol-wrap { max-width: 820px; margin: 0 auto; padding: 72px 40px 96px; }

.pol-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.pol-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--color-accent);
}
.pol-lead { font-size: 16.5px; line-height: 1.75; color: var(--text-body); margin: 0 0 40px; }

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 48px 0 14px;
  scroll-margin-top: 90px;
}
h2 .pol-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent-ink);
  margin-right: 10px;
  letter-spacing: 0.08em;
}
h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 28px 0 8px;
}

p, li { font-size: 15px; line-height: 1.75; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--text-strong); font-weight: 600; }

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-ink); }

/* ---------- table of contents ---------- */

.pol-toc {
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 44px;
}
.pol-toc h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 600; }
.pol-toc ol { margin: 0; padding-left: 20px; }
.pol-toc li { margin-bottom: 5px; font-size: 14px; }

/* ---------- call-out ---------- */

.pol-note {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.pol-note p:last-child { margin-bottom: 0; }
.pol-note-accent { border-left-color: var(--color-accent); }

/* ---------- identity block ---------- */

.pol-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 20px 0 28px;
}
.pol-card dl { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; }
.pol-card dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}
.pol-card dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-strong); }

/* ---------- tables ---------- */

.pol-tablewrap { overflow-x: auto; margin: 20px 0 28px; }
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; line-height: 1.6; vertical-align: top; }
th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-sunken);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }
td code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--text-strong);
}

/* ---------- inline button ---------- */

.pol-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.16s ease;
}
.pol-btn:hover { filter: saturate(1.2) brightness(1.06); color: var(--color-on-accent); }
.pol-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- footer ---------- */

.pol-foot {
  background: var(--surface-dark-alt);
  color: #fff;
  border-top: 4px solid var(--color-accent);
}
.pol-foot-in {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.pol-foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.pol-foot a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.16s ease; }
.pol-foot a:hover { color: var(--color-accent); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .pol-head-in { padding: 13px 20px; }
  .pol-wrap { padding: 52px 20px 72px; }
  .pol-foot-in { padding: 40px 20px; }
  .pol-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .pol-card dt { padding-top: 12px; }
}

/* Match the hi-dpi scaling used by the content pages. */
@media (min-width: 2300px) { html { zoom: 1.2; } }
@media (min-width: 3000px) { html { zoom: 1.45; } }
@media (min-width: 3600px) { html { zoom: 1.7; } }

@media print {
  .pol-head, .pol-foot, .pol-toc, .pol-btn { display: none !important; }
  .pol-wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
