/*
 * Shared styling for the Will See legal site.
 * Palette and shape language mirror the in-app design system
 * (Well Versed / Project KOGVEST — constants/design-system.ts):
 * warm dark "wood" background, terracotta accent, softly rounded
 * panels with a faint top-left shine.
 */

:root {
  --background: #211c19;
  --surface: #2c2521;
  --surface-elevated: #37302a;
  --border: #443b33;

  --text-primary: #f4ebe0;
  --text-secondary: #bfae9c;
  --text-muted: #8c7a69;

  --accent-primary: #d98452;
  --accent-primary-dark: #b5693d;
  --accent-sage: #8fa876;
  --accent-gold: #e3b23c;
  --accent-blue: #7c9caf;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-panel: 0 3px 4px rgba(0, 0, 0, 0.25);
  --shadow-card-elevated: 0 4px 6px rgba(0, 0, 0, 0.3);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 24px 16px 48px;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

.page {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-elevated);
  text-align: center;
}

.hero__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 55%;
  height: 45%;
  background-color: rgba(255, 255, 255, 0.04);
  border-top-left-radius: var(--radius-lg);
  border-bottom-right-radius: 999px;
  pointer-events: none;
}

.hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.hero__title {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero__subtitle {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-primary);
}

.hero__updated {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__lede {
  margin: 12px auto 0;
  max-width: 46ch;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- Back link ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: none;
}

.back-link:hover {
  color: var(--accent-primary);
  border-bottom: none;
}

/* ---------- Content ---------- */

.content {
  margin-top: 24px;
}

.lead {
  color: var(--text-secondary);
  font-size: 16px;
}

section {
  margin-top: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--accent-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 132, 82, 0.4);
}

a:hover {
  color: var(--accent-gold);
  border-bottom-color: rgba(227, 178, 60, 0.5);
}

strong {
  color: var(--text-primary);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 20px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.card__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 60%;
  height: 25%;
  background-color: rgba(255, 255, 255, 0.03);
  border-top-left-radius: var(--radius-lg);
  border-bottom-right-radius: 999px;
  pointer-events: none;
}

.card h2 {
  margin-bottom: 14px;
}

.card--glance {
  border-left: 3px solid var(--accent-sage);
}

.card--contact {
  border-left: 3px solid var(--accent-primary);
  text-align: center;
}

.glance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glance-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.glance-list li:last-child {
  margin-bottom: 0;
}

.glance-list__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--accent-sage);
  color: var(--background);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Service cards ---------- */

.service h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.service ul {
  color: var(--text-secondary);
}

.service__tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--background);
}

.service__tag--ads {
  background-color: var(--accent-primary);
}

.service__tag--crash {
  background-color: var(--accent-blue);
}

.service__tag--analytics {
  background-color: var(--accent-gold);
}

.contact-email {
  display: inline-block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Document index (landing page) ---------- */

.doc-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.doc-list li {
  margin-bottom: 12px;
}

.doc-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: none;
}

.doc-link:hover {
  color: var(--text-primary);
  border-bottom: none;
  background-color: var(--surface-elevated);
}

.doc-link__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--accent-primary);
  color: var(--background);
  font-size: 18px;
}

.doc-link__body {
  flex: 1;
}

.doc-link__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.doc-link__meta {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

.doc-link__chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 20px;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer p {
  margin: 4px 0;
}

.footer__muted {
  color: var(--text-muted);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding-top: 40px;
}

.notfound__code {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  body {
    padding: 16px 12px 40px;
  }

  .hero {
    padding: 24px 18px 20px;
  }

  .hero__title {
    font-size: 28px;
  }

  .card {
    padding: 16px;
  }
}
