/* ═══════════════════════════════════════════════
   GenHorm — Legal Pages CSS
   Aesthetic: Dark editorial, refined & minimal
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --bg:        #0e0e0f;
  --surface:   #161618;
  --border:    #2a2a2e;
  --accent:    #c8a97e;
  --accent-dim:#8a6e4e;
  --text:      #e8e4dc;
  --muted:     #7a7672;
  --heading:   #f4f0e8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius: 2px;
  --max-w:  720px;
  --side:   clamp(1.25rem, 5vw, 3rem);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  padding: clamp(2rem, 8vw, 5rem) var(--side) clamp(3rem, 10vw, 6rem);

  /* Subtle grain texture */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,169,126,0.06) 0%, transparent 60%);
}

/* ── Nav link ───────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  transition: color 0.2s, gap 0.2s;
  position: relative;
}

.nav-link::before {
  content: '';
  display: inline-block;
  width: 1.6em;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  vertical-align: middle;
  margin-right: 0.5em;
}

.nav-link:hover {
  color: var(--heading);
  gap: 0.7em;
}

.nav-link:hover::before {
  width: 2.4em;
}

/* ── Layout wrapper ─────────────────────────── */
body > h1 {
  max-width: var(--max-w);
}

body > * {
  max-width: var(--max-w);
}

/* ── H1 — Page title ────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--accent);
}

/* ── H2 — Sections ──────────────────────────── */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.01em;
  margin-top: 2.8rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── H3 — Subsections ───────────────────────── */
h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

/* ── Paragraphs ─────────────────────────────── */
p {
  color: var(--text);
  font-size: clamp(0.9rem, 2vw, 0.975rem);
  margin-bottom: 1rem;
  max-width: 66ch;
}

/* ── Strong ─────────────────────────────────── */
strong {
  font-weight: 500;
  color: var(--heading);
}

/* ── Lists ──────────────────────────────────── */
ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

ul li {
  font-size: clamp(0.88rem, 1.8vw, 0.95rem);
  color: var(--text);
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-dim);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  max-width: 66ch;
}

ul li:hover {
  background: #1c1c1f;
  border-left-color: var(--accent);
}

ul li::before {
  content: '–';
  position: absolute;
  left: 0.8rem;
  color: var(--accent-dim);
  font-weight: 300;
}

/* ── Links inside content ───────────────────── */
p a, li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

p a:hover, li a:hover {
  color: var(--heading);
}

/* ── Divider between sections ───────────────── */
h2 + p,
h2 + ul {
  margin-top: 0;
}

/* ── Footer-ish last contact block ─────────── */
body > p:last-of-type {
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 66ch;
}

body > p:last-of-type strong {
  color: var(--accent);
  font-weight: 400;
}

/* ── Scroll fade-in animation ───────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1 { animation: fadeUp 0.5s ease both; }
h2 { animation: fadeUp 0.4s ease both; }
p  { animation: fadeUp 0.4s ease 0.05s both; }
ul { animation: fadeUp 0.4s ease 0.08s both; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --side: 1.1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  ul li {
    padding-left: 1.8rem;
    font-size: 0.88rem;
  }
}

@media (prefers-color-scheme: light) {
  /* Optional light mode override — remove if you want dark-only */
  :root {
    --bg:      #faf8f4;
    --surface: #f2efe9;
    --border:  #ddd9d0;
    --text:    #2e2c28;
    --muted:   #8a8680;
    --heading: #1a1816;
  }

  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,169,126,0.10) 0%, transparent 60%);
  }

  ul li:hover {
    background: #e8e4dc;
  }
}

/* ── Selection ──────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--bg);
}

@media screen and (min-width: 1200px) {
  body {
    max-width: 50%;
    margin: 0 auto;
  }
}
