/* Meze legal and support pages: one stylesheet for every page. */

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

:root {
  --ink: #1f2a24;
  --ink-muted: #5d6b63;
  --ink-light: #8a958e;
  --border: #e8e1d6;
  --bg: #fffdf9;
  --bg-subtle: #f8f3eb;
  --surface: #ffffff;
  --accent: #d0674a;
  --accent-soft: #f7e2db;
  --herb: #2f4a3c;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ede6;
    --ink-muted: #b6b0a6;
    --ink-light: #8d877e;
    --border: #34312c;
    --bg: #171614;
    --bg-subtle: #1f1d1a;
    --surface: #23211e;
    --accent: #e58060;
    --accent-soft: #3a2721;
  }
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a { font-size: 0.8125rem; color: var(--ink-muted); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Content */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.page-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.subtitle {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin-bottom: 40px;
  max-width: 620px;
}
section { margin-bottom: 40px; }
h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-top: 8px;
}
h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }
p { margin-bottom: 14px; font-size: 0.9375rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 20px; margin-bottom: 14px; }
li { font-size: 0.9375rem; margin-bottom: 6px; }
strong { font-weight: 650; }

.highlight-box {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.highlight-box p { margin-bottom: 0; color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 0.875rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--ink-muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.closing { font-size: 0.875rem; color: var(--ink-muted); }

/* Cards (contact, home) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: block;
  color: var(--ink);
}
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 12px; }
.card-link { font-size: 0.9375rem; font-weight: 600; word-break: break-all; }

/* Form */
.form-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 48px;
}
.form-section h2 { padding-top: 0; }
.form-desc { color: var(--ink-muted); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 140px; resize: vertical; }
.button {
  display: inline-block;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
}
.button:hover { filter: brightness(1.05); text-decoration: none; }
.form-note { font-size: 0.8125rem; color: var(--ink-light); margin-top: 12px; }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2212"; }
.faq-body { font-size: 0.9375rem; color: var(--ink-muted); margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8125rem; color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 0.8125rem; color: var(--ink-muted); }

@media (max-width: 600px) {
  h1 { font-size: 1.625rem; }
  main { padding: 40px 20px 72px; }
  .header-inner { padding: 12px 20px; }
  .nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-section { padding: 22px 18px; }
  .button { width: 100%; text-align: center; }
}
