/* ============================================================
   Legal pages — Privacy Policy & Terms of Service
   ============================================================ */

.legal-main {
  padding-top: 58px; /* navbar height */
  min-height: 100vh;
  background: var(--bg);
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 12px;
  line-height: 1.1;
}

.legal-meta {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
}

/* Body content */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.legal-body h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 16px;
  margin-bottom: -12px;
}

.legal-body p { color: var(--text-sub); }

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body li { color: var(--text-sub); }

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { opacity: 0.8; }

.legal-body address {
  font-style: normal;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  line-height: 2;
  color: var(--text);
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-width: 680px;
  width: calc(100% - 40px);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
.cookie-banner p { flex: 1; margin: 0; }
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.cookie-accept:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .legal-container { padding: 60px 20px 80px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 16px; }
  .cookie-accept { width: 100%; text-align: center; }
}
