/* ================================================================
   ORNEXI CV · POLICY STYLES  (privacy · terms)
   Design: matches Ornexi brand tokens
   ================================================================ */

:root {
  --c-hero:         #0F172A;
  --c-bg:           #FAFAF9;
  --c-surface:      #FFFFFF;
  --c-border:       #E5E7EB;
  --c-accent:       #D97706;
  --c-accent-h:     #B45309;
  --c-text:         #111827;
  --c-text-2:       #4B5563;
  --c-text-3:       #9CA3AF;
  --c-text-hero:    #F1F5F9;
  --c-text-hero-2:  #94A3B8;
  --font:           'Heebo', system-ui, sans-serif;
  --r-sm:  6px; --r-md: 12px; --r-lg: 20px; --r-full: 9999px;
  --ease:  cubic-bezier(.25,.46,.45,.94);
  --t-base: 200ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────── */
.policy-header {
  background: var(--c-hero);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 0;
  z-index: 50;
}

.policy-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text-hero);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
  transition: opacity var(--t-base) var(--ease);
}
.policy-logo:hover { opacity: .85; text-decoration: none; }
.policy-logo span { color: var(--c-accent); }

.policy-lang-links {
  display: flex;
  gap: 4px;
}
.policy-lang-links a {
  color: var(--c-text-hero-2);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition:
    color       var(--t-base) var(--ease),
    background  var(--t-base) var(--ease);
}
.policy-lang-links a:hover   { color: var(--c-text-hero); background: rgba(255,255,255,.07); }
.policy-lang-links a.active  { color: var(--c-accent); }

/* ── Content ─────────────────────────────────────────────────────── */
.policy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  line-height: 1.75;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-hero);
  letter-spacing: -.025em;
  line-height: 1.15;
}
h2 {
  margin: 36px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-hero);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-border);
}
p  { margin: 0 0 16px; color: var(--c-text-2); font-size: .96rem; }
ul { padding-inline-start: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; color: var(--c-text-2); font-size: .95rem; }

.policy-meta {
  font-size: .82rem;
  color: var(--c-text-3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.policy-meta::before {
  content: '📄';
  font-size: .9rem;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Legal footer nav ────────────────────────────────────────── */
.policy-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: .8rem;
  color: var(--c-text-3);
}
.policy-footer-nav a { color: var(--c-text-3); font-weight: 500; }
.policy-footer-nav a:hover { color: var(--c-accent); text-decoration: none; }
.policy-footer-nav a[aria-current="page"] { color: var(--c-accent); font-weight: 700; }

/* ── Made-by attribution ────────────────────────────────────────── */
.made-by { margin: 14px 0 0; font-size: .8rem; color: var(--c-text-3, #9CA3AF); }
.made-by a { color: var(--c-accent, #D97706); text-decoration: none; font-weight: 600; }
.made-by a:hover { text-decoration: underline; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 599px) {
  .policy-body { padding: 28px 16px 52px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
