/* Cast for Chromecast — standalone privacy policy page.
   Same Google tokens and spacing as the website / in-app FAQ; self-contained. */

:root {
  --g-blue: #0b57d0;
  --g-blue-bright: #4285f4;
  --g-blue-deep: #0842a0;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;

  --bg: #ffffff;
  --text: #1f1f1f;
  --text-muted: #575757;
  --border: #e8eaed;

  --accent: var(--g-blue);
  --accent-dark: var(--g-blue-deep);

  --shadow-lift: 0 2px 6px rgba(60, 64, 67, 0.12), 0 16px 40px -8px rgba(60, 64, 67, 0.18);
}

* { box-sizing: border-box; }

html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Google Sans Text", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2 { font-family: "Google Sans", "Google Sans Text", Roboto, sans-serif; font-weight: 400; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 500; transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; color: #fff; }

/* ---------- Header (glass) ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78); /* iOS 16.0–16.1: no color-mix() */
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 14px 20px;
}
.nav .brand {
  font-family: "Google Sans", "Google Sans Text", Roboto, sans-serif;
  font-weight: 500; font-size: 1.12rem; color: var(--text); letter-spacing: -0.01em;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.nav .brand span { color: var(--accent); }
@media (max-width: 860px) {
  .nav .brand { font-size: 1.05rem; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Language picker (same as the in-app FAQ) ---------- */
.lang { position: relative; flex-shrink: 0; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; cursor: pointer; list-style: none;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-toggle::-webkit-details-marker { display: none; }
.lang-icon { width: 18px; height: 18px; flex-shrink: 0; }
.lang-current { white-space: nowrap; }
.caret { width: 16px; height: 16px; flex-shrink: 0; margin-left: -2px; transition: transform 0.2s ease; }
.lang[open] .lang-toggle { color: var(--accent); border-color: var(--accent); }
.lang[open] .caret { transform: rotate(180deg); }

.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lift);
  max-height: 60vh; overflow-y: auto;
}
.lang-list button {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  font: inherit; font-size: 0.95rem; color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-list button[aria-current="true"] { color: var(--accent); font-weight: 500; }
.lang-list button[aria-current="true"]::after { content: " ✓"; }

/* Hover effects only where a real pointer exists — on touch they stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  .lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
  .lang-list button:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
}

@media (max-width: 380px) {
  .lang-current { display: none; }
  .lang-toggle { padding: 0 10px; }
}

/* ---------- Policy body ---------- */
/* scroll-margin keeps "Back to top" / skip link from landing under the sticky header */
.policy-page {
  max-width: 760px; margin: 0 auto; padding: 32px 20px 8px;
  scroll-margin-top: calc(80px + env(safe-area-inset-top));
}

.policy-page h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 10px 0 28px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.policy-page h2 {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.policy-page p { color: var(--text-muted); margin: 0 0 16px; }
.policy-page p:has(+ ul) { margin-bottom: 10px; }

.policy-page ul { color: var(--text-muted); margin: 0 0 16px; padding-left: 22px; }
.policy-page li { margin-bottom: 8px; padding-left: 3px; }
.policy-page li::marker { color: var(--accent); }

.policy-page .contact { margin-top: 32px; }
.policy-page .contact a { font-weight: 500; }

.policy-page .to-top { margin: 36px 0 8px; font-size: 0.9rem; }
.to-top a { color: var(--text-muted); text-decoration: none; }
.to-top a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 20px calc(32px + env(safe-area-inset-bottom));
  margin-top: 40px;
  font-size: 0.875rem; color: var(--text-muted);
}
footer .cols { max-width: 760px; margin: 0 auto; }
footer .cols > strong {
  display: block; color: var(--text); font-size: 1rem; font-weight: 500;
  font-family: "Google Sans", "Google Sans Text", Roboto, sans-serif;
}
footer .cols p { margin: 8px 0 0; }
footer .legal {
  max-width: 760px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 0.8rem; line-height: 1.6;
}

.noscript-note {
  max-width: 760px; margin: 16px auto; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 14px;
  font-size: 0.9rem; color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
