/* ============================================================
   Shared styles for the Arnez Press legal pages (terms / privacy).
   Mirrors the design tokens of index.html so the legal
   pages feel like the same site. Kept in one file so both pages
   stay in sync.
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f4;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-deep: #a8893b;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.08em; }
.nav-logo-text small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 2px; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-back { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); }
.nav-back:hover { color: var(--gold); }
.lang-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-toggle button { padding: 5px 12px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--muted); transition: all .2s; }
.lang-toggle button.active { background: var(--gold); color: #0a0a0a; font-weight: 600; }
@media (max-width: 520px) { .nav { padding: 14px 18px; } .nav-logo-text { display: none; } }

/* ---------- LEGAL CONTENT ---------- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 70px 32px 40px; }
@media (max-width: 600px) { .legal-wrap { padding: 48px 22px 30px; } }
.legal-eyebrow { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
.legal-wrap h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-updated { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 14px; }
.legal-disclaimer {
  margin: 22px 0 40px; padding: 16px 20px;
  border-left: 2px solid var(--gold); background: rgba(201,168,76,0.06);
  border-radius: 0 10px 10px 0; color: var(--gold-light); font-size: 0.9rem;
}
.legal-section { margin-bottom: 34px; }
.legal-section h2 {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.25;
  margin-bottom: 12px; color: var(--text);
}
.legal-section h2 .num { color: var(--gold); margin-right: 10px; }
.legal-section p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.legal-section p strong, .legal-section li strong { color: var(--text); font-weight: 600; }
.legal-section ul { list-style: none; padding: 0; margin: 0 0 14px; }
.legal-section li { position: relative; padding: 6px 0 6px 22px; color: var(--muted); font-size: 1rem; }
.legal-section li::before { content: ''; position: absolute; left: 0; top: 16px; width: 12px; height: 1px; background: var(--gold); }
.legal-section a { word-break: break-word; }

/* TODO marker — visible in the page so unresolved placeholders cannot be missed before launch.
   Remove the rule (or the .todo spans) once every placeholder is filled. */
.todo {
  background: rgba(201,168,76,0.16); border: 1px dashed var(--gold);
  border-radius: 4px; padding: 0 6px; color: var(--gold-light); font-weight: 600;
  font-size: 0.92em;
}

/* ---------- FOOTER ---------- */
footer { background: var(--bg-2); padding: 50px 0 28px; border-top: 1px solid var(--line); margin-top: 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 26px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom small { color: var(--muted); font-size: 0.82rem; }

/* ---------- LANGUAGE VISIBILITY (robust, CSS-driven; legal text stays visible without JS) ---------- */
[data-lang="es"] [data-lang-content="en"] { display: none; }
[data-lang="en"] [data-lang-content="es"] { display: none; }
/* If JS never runs, default to Spanish (primary edition) */
.no-js [data-lang-content="en"] { display: none; }
