/* Carta nativa — TactilePassportTheme and ObloTypography.Book in the iOS app.
   Scoped to the privacy page; the support page keeps its existing stylesheet. */
:root:has(.privacy-page) {
  --ink: #30262a;
  --muted: #706160;
  --surface: #f6f0e4;
  --surface-soft: #f0e5d9;
  --line: #dfd0c2;
  --brand: #781f33;
  --brand-strong: #781f33;
  --brand-soft: #f0e5d9;
  --shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
}

.privacy-page {
  background: var(--surface);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.privacy-page ::selection { background: var(--line); color: var(--ink); }
.privacy-page a { text-decoration-thickness: 1px; }
.privacy-page a:focus-visible,
.privacy-page summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
  border-radius: 4px;
}
.privacy-page .skip-link { background: var(--brand); color: var(--surface); }
.privacy-page .site-header { border: 0; background: var(--surface); }
.privacy-page .header-inner,
.privacy-page .shell,
.privacy-page .footer-inner { width: min(100% - 3rem, 72rem); }
.privacy-page .header-inner { min-height: 6rem; }
.privacy-page .brand { color: var(--ink); font-size: 1.4rem; gap: 0.6rem; }
.privacy-page .brand-mark {
  width: 2rem;
  height: 2.3rem;
  border-radius: 0;
  background: none;
  color: var(--brand);
  box-shadow: none;
}
.brand-mark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; }
.privacy-page .site-nav { gap: 0.4rem; font-size: 0.94rem; }
.privacy-page .site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-weight: 600;
}
.privacy-page .site-nav a[aria-current="page"],
.privacy-page .site-nav a:hover { background: var(--surface-soft); color: var(--brand); }
.privacy-page main { padding-top: 3.5rem; }
.privacy-page .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: none;
  margin: 0;
  padding: 1.2rem 0 2.5rem;
}
.hero-copy { max-width: 46rem; }
.privacy-page .eyebrow { font-size: 0.72rem; letter-spacing: 0.15em; font-weight: 600; }
.privacy-page h1 { margin-top: 0.8rem; font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; overflow-wrap: anywhere; }
.privacy-page .lead { max-width: 39rem; margin-top: 1.4rem; font-size: 1.2rem; line-height: 1.6; }
.updated { display: flex; align-items: center; gap: 0.45rem; margin: 1.6rem 0 0; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.date-dot { width: 6px; height: 6px; margin-right: 0.2rem; border-radius: 50%; background: var(--brand); }
.passport-emblem {
  display: flex;
  flex: 0 0 148px;
  height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: 8px 22px 22px 8px;
  border: 1px solid #8e4d57;
  outline: 1px solid #dfc18a;
  outline-offset: -8px;
  background: #681f2b;
  color: #dec18a;
  transform: rotate(7deg);
  margin: 0 2.2rem 0 1rem;
  box-shadow: 5px 7px 0 var(--line);
}
.passport-emblem svg { width: 50px; height: 60px; stroke: currentColor; stroke-width: 1.2; }
.passport-emblem span { font-size: 0.7rem; letter-spacing: 0.28em; padding-left: 0.28em; }
.privacy-page .lang-switch { display: flex; gap: 0.6rem; margin: 0 0 3.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.privacy-page .lang-switch a { display: inline-flex; gap: 1.2rem; align-items: center; min-height: 44px; border-radius: 14px; padding: 0.55rem 1rem; background: var(--surface-soft); border: 1px solid transparent; color: var(--brand); font-weight: 600; }
.privacy-page .lang-switch a:hover { border-color: var(--brand); }
.policy-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.policy-layout + .policy-layout { border-top: 1px solid var(--line); padding-top: 3.5rem; margin-top: 5rem; }
.policy-index { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; scrollbar-width: thin; }
.index-title { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.policy-index ol { list-style: none; padding: 0; margin: 0; }
.policy-index li { margin: 0; }
.policy-index a { display: flex; align-items: baseline; gap: 0.7rem; min-height: 44px; padding: 0.6rem 0.6rem 0.6rem 0; color: var(--muted); font-size: 0.83rem; line-height: 1.4; text-decoration: none; border-radius: 8px; }
.policy-index a > span:first-child { font-size: 0.65rem; color: var(--brand); font-variant-numeric: tabular-nums; flex: 0 0 1.1rem; }
.policy-index a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.policy-index a:hover { color: var(--brand); background: var(--surface-soft); }
.index-mobile { display: none; }
.privacy-page .prose { max-width: 47rem; min-width: 0; }
.article-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article-heading h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; }
.article-heading > span { font-size: 0.8rem; color: var(--muted); }
.privacy-page .policy-section { scroll-margin-top: 1.5rem; margin-top: 2.8rem; }
.privacy-page .policy-section + .policy-section { padding-top: 2.5rem; border-top: 1px dashed var(--line); }
.privacy-page h3 { display: flex; align-items: baseline; gap: 0.8rem; margin: 0 0 1.1rem; font-size: 1.3rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.02em; }
.privacy-page h3 > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.section-number { display: inline-flex; flex-shrink: 0; justify-content: center; min-width: 2rem; padding: 0.25rem 0.35rem; border-radius: 9px; background: var(--surface-soft); color: var(--brand); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.privacy-page .prose p { margin: 0.9rem 0; overflow-wrap: anywhere; }
.privacy-page .prose strong { font-weight: 650; }
.privacy-page code { padding: 0.12rem 0.3rem; border-radius: 4px; background: var(--surface-soft); font-size: 0.85em; }
.privacy-page .back-link { margin-top: 2.5rem; }
.back-link a { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.privacy-page .site-footer { margin-top: 1rem; background: var(--surface-soft); }
.privacy-page .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.privacy-page .footer-inner p:first-child { grid-row: span 2; font-size: 1rem; }
.privacy-page .footer-inner p { font-size: 0.83rem; }
.privacy-page .footer-inner a { display: inline-block; min-height: 44px; padding: 0.5rem 0; }

@media (max-width: 54rem) {
  .privacy-page .hero { gap: 1.5rem; }
  .passport-emblem { flex-basis: 100px; height: 136px; margin-right: 0.7rem; }
  .passport-emblem svg { width: 35px; height: 42px; }
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .policy-index { position: static; max-height: none; overflow: visible; }
  .index-desktop { display: none; }
  .index-mobile { display: block; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-soft); }
  .index-mobile summary { min-height: 60px; padding: 1rem 0; font-weight: 600; color: var(--brand); cursor: pointer; }
  .index-mobile summary > span { margin-left: 0.5rem; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
  .index-mobile nav { padding: 0 0 0.8rem; }
  .policy-index a { font-size: 0.9rem; }
  .privacy-page .prose { max-width: none; }
  .privacy-page .lang-switch { margin-bottom: 2rem; }
}

@media (max-width: 42rem) {
  .privacy-page .header-inner,
  .privacy-page .shell,
  .privacy-page .footer-inner { width: calc(100% - 2rem); }
  .privacy-page .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-height: 5rem; padding: 0.8rem 0; }
  .privacy-page .site-nav { gap: 0; }
  .privacy-page .site-nav a { font-size: 0.83rem; padding: 0.5rem 0.6rem; }
  .privacy-page .brand { font-size: 1.25rem; gap: 0.4rem; }
  .privacy-page .brand-mark { width: 1.6rem; height: 1.9rem; }
  .privacy-page main { padding-top: 1.8rem; }
  .privacy-page .hero { display: block; padding-top: 0.5rem; padding-bottom: 1.8rem; }
  .passport-emblem { display: none; }
  .privacy-page h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .privacy-page .eyebrow { font-size: 0.64rem; letter-spacing: 0.12em; }
  .privacy-page .lead { font-size: 1.08rem; margin-top: 1.2rem; }
  .updated { font-size: 0.78rem; }
  .privacy-page h3 { font-size: 1.2rem; gap: 0.6rem; }
  .privacy-page .policy-section { margin-top: 2rem; }
  .privacy-page .policy-section + .policy-section { padding-top: 2rem; }
  .privacy-page .footer-inner { display: block; }
}

@media (max-width: 23rem) {
  .privacy-page .header-inner { flex-wrap: wrap; }
  .privacy-page .site-nav { width: 100%; }
}

@media (prefers-color-scheme: dark) {
  :root:has(.privacy-page) {
    --ink: #f1e8da;
    --muted: #c3b5af;
    --surface: #231f21;
    --surface-soft: #30282c;
    --line: #3c3035;
    --brand: #e8a5af;
    --brand-strong: #e8a5af;
    --brand-soft: #30282c;
  }
}

@media (prefers-contrast: more) {
  :root:has(.privacy-page) { --ink: #21181c; --muted: #574747; --line: #8c7777; }
  .passport-emblem { display: none; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:has(.privacy-page) { --ink: #fff4e5; --muted: #e1ccc6; --line: #a48b8e; }
}

@media print {
  :root:has(.privacy-page) { --ink: #000; --muted: #333; --surface: #fff; --surface-soft: #fff; --line: #bbb; --brand: #000; }
  .privacy-page, .privacy-page .site-header { background: #fff; color: #000; }
  .privacy-page .site-header, .policy-index, .passport-emblem, .privacy-page .site-footer, .back-link { display: none; }
  .policy-layout { display: block; }
  .privacy-page .shell { width: 100%; }
  .privacy-page h3 { break-after: avoid; }
  .section-number { border: 1px solid #bbb; }
}
