/* =====================================================================
   DankeeGo - Privacy Policy + Terms & Conditions: fit every screen
   Phone  ->  small tablet  ->  tablet  ->  laptop  ->  desktop  ->  big monitor (2K / 4K)
   Load this file AFTER privacy.css.
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.pp-body { overflow-x: clip; }
.pp-doc, .sec, .bt, .mini, .cta { overflow-wrap: break-word; word-wrap: break-word; }
.pp-doc img, .pp-doc svg { max-width: 100%; height: auto; }
.pp-top { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
.pp-foot { padding-bottom: max(34px, env(safe-area-inset-bottom)); }

/* ---------- laptop / small desktop: hero text must never run under the emblem ---------- */
@media (min-width: 861px) and (max-width: 1199px) {
  .pp-hero-copy { max-width: min(640px, calc(100% - 320px)); }
  .pp-emblem { animation: none; transform: translateY(-56%) scale(.78); transform-origin: right center; }
  .em-chip { display: none; }
  .pp-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- tablet portrait / big phones: use two columns instead of one long column ---------- */
@media (min-width: 561px) and (max-width: 860px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-span { grid-column: 1 / -1; }
  .pp-hero-copy { max-width: 560px; }
  .sec { padding: 1.6rem 1.5rem; }
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .pp-nav { height: 64px; }
  .pp-nav img { width: 140px; height: 42px; }
  .pp-back { padding: .42rem .85rem; font-size: .84rem; }
  .pp-toc { top: 64px; }
  .pp-hero { padding: 40px 0 104px; }
  .pp-hero h1 { font-size: clamp(1.95rem, 9vw, 2.4rem); }
  .pp-hero p { font-size: 1rem; line-height: 1.6; }
  .pp-facts span { font-size: .78rem; padding: .35rem .75rem; }
  .pp-bento { margin-top: -70px; gap: 12px; }
  .bt { padding: 1.15rem; border-radius: 20px; }
  .bt-d { flex-wrap: wrap; }
  .sec { padding: 1.25rem 1rem; border-radius: 20px; scroll-margin-top: 124px; }
  .sec header { gap: 10px; }
  .sec p, .sec li { font-size: .97rem; line-height: 1.7; }
  .cta { padding: 1.2rem; }
  .sec a.cta-btn { width: 100%; justify-content: center; }
  .note { align-items: flex-start; }
  .pp-foot-links { flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
  .pp-foot-logo img { width: 160px; height: 48px; }
}
@media (max-width: 360px) {
  .pp-container { padding-left: 12px; padding-right: 12px; }
  .pp-back { font-size: .78rem; padding: .38rem .7rem; }
  .pp-nav img { width: 120px; }
  .num { width: 36px; height: 36px; }
  .sec h2 { font-size: 1.05rem; }
}

/* ---------- phone in landscape (short screens) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .pp-hero { padding: 32px 0 96px; }
  .pp-toc { top: 64px; }
}

/* ---------- large desktop ---------- */
@media (min-width: 1400px) {
  .pp-container { max-width: 1320px; }
  .pp-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
  .pp-emblem { right: max(24px, calc(50% - 660px)); }
  .pp-hero-copy { max-width: 700px; }
}

/* ---------- full-HD and bigger monitors ---------- */
@media (min-width: 1800px) {
  html { font-size: 17px; }
  .pp-container { max-width: 1560px; }
  .pp-nav { height: 84px; }
  .pp-nav img { width: 200px; height: 56px; }
  body.pp-body .pp-toc { top: 108px; }
  .sec { scroll-margin-top: 104px; }
  .pp-wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .pp-emblem { width: 460px; height: 460px; right: max(24px, calc(50% - 780px)); }
  .em-plate { inset: 84px; padding: 36px; }
  .pp-hero { padding: 104px 0 170px; }
  .pp-hero-copy { max-width: 780px; }
  .pp-hero p { max-width: 640px; }
  .pp-bento { gap: 20px; }
  .sec { padding: 2.4rem 2.8rem; margin-bottom: 22px; }
}
@media (min-width: 1800px) and (min-height: 700px) {
  body.pp-body .pp-toc { max-height: calc(100vh - 128px); }
}

/* ---------- 2K / 4K / ultra-wide ---------- */
@media (min-width: 2400px) {
  html { font-size: 19px; }
  .pp-container { max-width: 1900px; }
  .pp-nav { height: 96px; }
  .pp-nav img { width: 230px; height: 64px; }
  body.pp-body .pp-toc { top: 120px; }
  .pp-wrap { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; }
  .pp-emblem { width: 540px; height: 540px; right: max(24px, calc(50% - 925px)); }
  .em-plate { inset: 98px; padding: 42px; }
  .pp-hero-copy { max-width: 920px; }
  .pp-hero p { max-width: 760px; }
}

/* ---------- MOBILE FIX: the contents bar was stretching the whole page sideways ----------
   On phones/tablets .pp-wrap is one column. A plain "1fr" column can't shrink below its content,
   and the contents bar (a long row of links) made the page ~3000px wide. minmax(0,1fr) lets it shrink,
   so the bar scrolls sideways by itself and the page fits the screen. */
@media (max-width: 860px) {
  .pp-wrap { grid-template-columns: minmax(0, 1fr); }
  .pp-toc, .pp-doc { min-width: 0; max-width: 100%; }
  .toc-list { max-width: 100%; -webkit-overflow-scrolling: touch; }
}