/* ── FunShot Brand Policy Pages ──
   Shared styles for AUP, ToS, Privacy Policy
   Mirrors brand tokens from src/index.css & src/App.css
*/

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

:root {
  --bg: #faf8f5;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6b7280;
  --muted2: #9aa0a6;
  --border: #e8e5e0;
  --shadow: 0 8px 20px rgba(30, 35, 40, 0.06);
  --primary: #0d3b2e;
  --primary2: #1a6b4f;
  --accent: #ea580c;
  --radius: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Layout ── */
.policy-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Brand header ── */
.policy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.policy-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  border: 1px solid rgba(13, 59, 46, 0.12);
  display: grid;
  place-items: center;
  color: #f8fbfa;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(13, 59, 46, 0.14);
}

.policy-brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.policy-brand a {
  color: inherit;
  text-decoration: none;
}

/* ── Article card ── */
.policy-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 48px 56px;
}

@media (max-width: 640px) {
  .policy-card {
    padding: 28px 20px;
  }
}

/* ── Typography ── */
.policy-card h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text);
}

.policy-card .policy-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-card h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
}

.policy-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

.policy-card p {
  margin: 0 0 16px;
  color: #374151;
}

.policy-card ul, .policy-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #374151;
}

.policy-card li {
  margin-bottom: 8px;
}

.policy-card strong {
  color: var(--text);
  font-weight: 700;
}

.policy-card a {
  color: var(--primary2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.policy-card a:hover {
  color: var(--primary);
}

/* ── Notice / warning callouts ── */
.policy-notice {
  background: rgba(13, 59, 46, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.policy-notice p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

/* ── Footer ── */
.policy-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}

.policy-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-footer a:hover {
  color: var(--text);
}

/* ── Back link ── */
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px;
  text-decoration: none;
}

.policy-back:hover {
  color: var(--text);
}

/* ── Last updated badge ── */
.policy-updated {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(107, 114, 128, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 24px;
}
