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

:root {
  --bg: #fbf9f4;
  --bg-soft: #f5f1e8;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --soft: #6b6b6b;
  --muted: #999;
  --accent: #ff5436;
  --accent-dark: #c8401f;
  --accent-soft: #fff0ed;
  --line: #ececec;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
nav {
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-mini {
  height: 96px;
  width: auto;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 12px;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* === LEGAL CONTENT === */
.legal {
  padding: 60px 0 80px;
  max-width: 820px;
}
.legal-header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.legal-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal-header h1 em {
  color: var(--accent);
  font-style: italic;
}
.updated {
  font-size: 0.85rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 40px 0 16px;
  line-height: 1.25;
}
.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.legal-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.legal-body p strong { color: var(--ink); }
.legal-body ul {
  margin: 14px 0 20px 24px;
  color: var(--ink-soft);
}
.legal-body ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--accent-dark); }
.data-list {
  list-style: none !important;
  margin-left: 0 !important;
  background: var(--card);
  border-radius: 12px;
  padding: 16px 22px !important;
  border: 1px solid var(--line);
}
.data-list li {
  padding: 6px 0;
}
.data-list li::before {
  content: '→ ';
  color: var(--accent);
  font-weight: 600;
}

/* Cookie table */
.cookie-table {
  margin: 20px 0 30px;
  overflow-x: auto;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cookie-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}
.cookie-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  white-space: nowrap;
}

.open-settings-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.open-settings-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.legal-footer-note {
  margin-top: 50px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.legal-footer-note p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* === FOOTER === */
footer {
  padding: 50px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .container { padding: 0 22px; }
  .logo-mini { height: 64px; }
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
  .legal { padding: 30px 0 60px; }
  .legal-body h2 { font-size: 1.35rem; margin-top: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner a { margin-left: 0; margin-right: 16px; }
}
