/* iCrave Legal Pages — styles.css */

:root {
  --brand: #F15A22;
  --brand-dark: #d44d1a;
  --text: #1A1A1A;
  --text-muted: #555555;
  --border: #e8e8e8;
  --bg: #ffffff;
  --max-width: 720px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding: 0 20px;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* ── Header / Nav ── */

header {
  border-bottom: 3px solid var(--brand);
  padding: 20px 0 16px;
  margin-bottom: 40px;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--brand-dark);
}

/* ── Typography ── */

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-top: 10px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 6px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

ul, ol {
  margin: 0 0 16px 24px;
}

li {
  margin-bottom: 6px;
}

/* ── Meta / Last Updated ── */

.meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ── Links ── */

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ── Index Page ── */

.index-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.nav-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nav-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(241, 90, 34, 0.12);
  text-decoration: none;
  color: var(--text);
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.nav-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Support Page ── */

.support-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--brand);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Section dividers ── */

.section {
  margin-bottom: 8px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  body {
    padding: 0 16px;
  }

  .container {
    padding: 32px 0 60px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.05rem;
  }

  .nav-cards {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
