/* ── Legal Page Styles ── */
/* ValueFlows brand-aligned legal page CSS */
/* Fonts: IBM Plex Sans (body), Cormorant Garamond (headings) */

/* ── 1. Variables ── */
:root {
  --ink:      #06080D;
  --ink-mid:  #0d1018;
  --ink-card: #111520;
  --border:   #1f2535;
  --muted:    #6b7489;
  --text:     #c8cbda;
  --bright:   #e8eaf0;
  --accent:   #C49A38;
  --accent-2: #D4AF50;
}

/* ── 2. Base Layout ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--ink);
  color: var(--bright);
  line-height: 1.65;
  font-size: 16px;
}

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

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

/* ── 3. Typography ── */
main h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bright);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.page-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.page-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
  display: block;
}

/* ── 4. Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bright);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-back {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-back:hover {
  color: var(--bright);
}

/* ── 5. Content ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.legal-section ul li {
  margin-bottom: 0.3rem;
}

/* ── 6. Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-opt {
  color: var(--muted);
  text-decoration: none;
}

.lang-opt:hover {
  color: var(--bright);
}

.lang-opt.lang-active {
  color: var(--accent);
}

.lang-sep {
  color: var(--border);
  user-select: none;
}

/* ── 7. Responsive ── */
@media (max-width: 600px) {
  nav .inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  main {
    padding: 2.5rem 1rem 4rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}
