:root {
  --sage-50: #f6f7f5;
  --sage-100: #e8ebe5;
  --sage-200: #d1d7cb;
  --sage-600: #6b7a5e;
  --sage-700: #556349;
  --sage-800: #3f4a36;
  --sage-900: #2a3224;
  --coral-500: #e07a5f;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #8a8a8a;
  --surface: #ffffff;
  --divider: #e5e5e5;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Rounded", "Helvetica Neue", sans-serif;
  color: var(--text-primary);
  background: var(--sage-50);
  line-height: 1.7;
}

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

/* Landing page */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 48px 24px;
}

.landing h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-bottom: 8px;
}

.landing .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.landing nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing nav a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--sage-700);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.landing nav a:hover {
  background: var(--sage-800);
}

.landing .contact {
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.landing .contact a {
  color: var(--sage-600);
  text-decoration: none;
}

.landing .contact a:hover {
  text-decoration: underline;
}

/* Legal document pages */
.doc-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.doc-header .back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--sage-600);
  text-decoration: none;
  margin-bottom: 16px;
}

.doc-header .back:hover {
  text-decoration: underline;
}

.doc-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-bottom: 8px;
}

.doc-header .meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage-800);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-top: 24px;
  margin-bottom: 12px;
}

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

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

a {
  color: var(--sage-600);
}

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

li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

thead th {
  background: var(--sage-100);
  color: var(--sage-800);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
  vertical-align: top;
}

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

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 40px 0;
}

.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

@media (max-width: 480px) {
  .container {
    padding: 32px 16px 64px;
  }
  .doc-header h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  table {
    font-size: 0.8rem;
  }
  thead th, tbody td {
    padding: 8px;
  }
}
