/* WineDiaries Legal Pages — Brand: cream + burgundy + white */

:root {
  --bg: #f6f0e7;
  --surface: #ffffff;
  --primary: #722F37;
  --text: #2a1717;
  --text-muted: #6b5c5c;
  --border: #e8ddd0;
  --radius: 12px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
header {
  padding: 32px 0 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Main content */
main {
  flex: 1;
  padding: 40px 0;
}

article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 1px 3px rgba(42, 23, 23, 0.04);
}

/* Typography */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

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

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

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

li {
  margin-bottom: 6px;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(114, 47, 55, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--primary);
}

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

th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

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

/* FAQ (support page) */
.faq-item {
  margin-bottom: 28px;
}

.faq-item h3 {
  margin-top: 0;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-muted);
}

.contact-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.contact-box .email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-box .response-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Footer */
footer {
  padding: 24px 0 32px;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

footer .footer-links {
  margin-top: 8px;
}

footer .footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
}

footer .footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
  article {
    padding: 32px 24px;
    border-radius: 0;
  }

  main {
    padding: 24px 0;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 8px;
  }
}
