/* ============================================
   SeeTV — shared design system
   (matches Claude Design mockups: dark bg,
   violet gradient, Schibsted Grotesk display)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08080C;
  --card-bg: #101018;
  --input-bg: #0c0c14;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.12);
  --accent-1: #6E5BFF;
  --accent-2: #B15BFF;
  --accent-gradient: linear-gradient(150deg, var(--accent-1), var(--accent-2));
  --accent-text: #B49BFF;
  --text: #fff;
  --text-muted: rgba(255,255,255,.6);
  --text-faint: rgba(255,255,255,.4);
  --text-faintest: rgba(255,255,255,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #fff; }

h1, h2 { font-family: 'Schibsted Grotesk', system-ui, sans-serif; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,12,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark .tri {
  width: 11px;
  height: 13px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background: #fff;
  margin-left: 2px;
}

.brand-name {
  font: 800 20px 'Schibsted Grotesk', system-ui;
  letter-spacing: -.5px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 30px;
  font: 500 15px system-ui;
}

.nav-links a { color: rgba(255,255,255,.55); }
.nav-links a.active { color: #fff; }

.btn-pill {
  background: var(--accent-gradient);
  color: #fff;
  font: 600 14px system-ui;
  padding: 11px 22px;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(120,92,255,.35);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-pill:hover { color: #fff; opacity: .92; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-gradient);
}

/* ---------- Legal page ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}

.eyebrow {
  font: 700 13px/1 system-ui;
  letter-spacing: 3px;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-wrap h1 {
  margin: 0 0 6px;
  font: 800 44px/1.1 'Schibsted Grotesk', system-ui;
  letter-spacing: -1.2px;
}

.updated {
  font: 400 14px system-ui;
  color: var(--text-faint);
  margin-bottom: 44px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  font: 400 16px/1.7 system-ui;
  color: rgba(255,255,255,.68);
}

.legal-body h2 {
  font: 700 20px 'Schibsted Grotesk', system-ui;
  color: #fff;
  margin: 0 0 10px;
}

.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }

.highlight {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 12px;
  padding: 18px 22px;
}

.highlight p { color: rgba(255,255,255,.85); margin: 0; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px/1.6 system-ui;
}

.legal-body th, .legal-body td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  color: rgba(255,255,255,.65);
}

.legal-body th {
  background: var(--card-bg);
  color: #fff;
  font-family: 'Schibsted Grotesk', system-ui;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 26px;
  font: 500 14px system-ui;
  flex-wrap: wrap;
}

.footer-nav a { color: rgba(255,255,255,.55); }

.footer-meta {
  font: 400 13px system-ui;
  color: var(--text-faintest);
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .legal-wrap h1 { font-size: 34px; }
}

/* ---------- Embedded mode (opened from inside the app) ---------- */
html.embedded-doc .nav,
html.embedded-doc .footer {
  display: none !important;
}

html.embedded-doc .legal-wrap {
  padding-top: 28px;
}

.contact-app { display: none; }

html.embedded-doc .contact-web { display: none; }
html.embedded-doc .contact-app { display: inline; }
