/* Sunday Sticks Legal Pages — Brand-matched styling */
/* Colors from constants/design.ts */

:root {
  --bg: #EAE3D6;
  --surface: #EDE7DA;
  --card: #F7F3EC;
  --ink: #1A1710;
  --ink-mid: #2C2618;
  --ink-muted: #504840;
  --pine: #1B5E34;
  --rule: #D8D0C0;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  background-color: var(--bg);
  color: var(--ink-mid);
  font-family: var(--font-body);
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-header .app-name {
  color: var(--pine);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Section headings */
h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Body text */
p {
  margin-bottom: 16px;
  color: var(--ink-mid);
}

/* Lists */
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  color: var(--ink-mid);
}

/* Links */
a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Callout / disclaimer box */
.callout {
  background-color: var(--card);
  border-left: 3px solid var(--pine);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.callout p {
  margin-bottom: 8px;
}

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

.callout strong {
  color: var(--ink);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9375rem;
}

th {
  background-color: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--rule);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mid);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

/* Footer */
.page-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.page-footer a {
  color: var(--pine);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 60px;
  }

  .page-header h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.8125rem;
  }

  th, td {
    padding: 8px 10px;
  }
}
