/* LetsSplyt legal pages — shared with landing theme */

:root {
  --teal-950: #0b3d45;
  --teal-900: #0e5c66;
  --teal-600: #1a8f9e;
  --teal-400: #2dd4bf;
  --surface: #f7f9fb;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border: #e2e8f0;
  --shadow-md: 0 8px 30px rgba(14, 92, 102, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.legal-page {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-900);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header (matches landing, always light on legal pages) */
.site-header.legal-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--teal-900);
  text-decoration: none;
}

.nav a[aria-current='page'] {
  font-weight: 700;
}

@media (max-width: 640px) {
  .nav {
    gap: 14px;
    font-size: 13px;
  }
}

/* Hero band */
.legal-hero {
  padding: calc(var(--header-h) + 40px) 0 48px;
  background: linear-gradient(155deg, var(--teal-950) 0%, var(--teal-900) 50%, var(--teal-600) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent);
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
}

.legal-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-hero-meta {
  font-size: 14px;
  opacity: 0.88;
}

.legal-hero-meta strong {
  font-weight: 600;
}

/* Main content card */
.legal-main {
  padding: 40px 0 64px;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 28px 22px;
  }
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
  line-height: 1.35;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
  line-height: 1.35;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: #475569;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 12px 20px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content blockquote {
  border-left: 3px solid var(--teal-400);
  background: rgba(14, 92, 102, 0.06);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin: 16px 0;
  color: #475569;
  font-size: 14px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-content table {
    font-size: 13px;
  }

  .legal-content th,
  .legal-content td {
    padding: 8px;
  }
}

/* Footer (matches landing) */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand .logo-text {
  font-weight: 800;
  font-size: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--teal-900);
  text-decoration: none;
}

.footer-meta {
  text-align: right;
  flex-shrink: 0;
}

.footer-contact {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-contact strong {
  color: var(--teal-900);
  font-weight: 600;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
    margin-top: 8px;
  }
}
