/* Shared site styles — legal pages, cookie consent, utilities */

:root {
  --tl-bg: oklch(0.98 0.004 90);
  --tl-surface: oklch(1 0 0);
  --tl-border: oklch(0.9 0.005 90);
  --tl-text: oklch(0.19 0.01 260);
  --tl-muted: oklch(0.45 0.01 260);
  --tl-accent: oklch(0.83 0.19 128);
  --tl-dark: oklch(0.19 0.01 260);
  --tl-dark-muted: oklch(0.7 0.01 90);
}

/* ── Legal / subpages ── */

.tl-page {
  margin: 0;
  background: var(--tl-bg);
  color: var(--tl-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.tl-page *,
.tl-cookie-banner *,
.tl-cookie-modal * {
  box-sizing: border-box;
}

.tl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(0.98 0.004 90 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tl-border);
}

.tl-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tl-text);
}

.tl-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.tl-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.tl-nav a {
  color: oklch(0.35 0.01 260);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.tl-nav a:hover {
  color: var(--tl-text);
}

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tl-dark);
  color: var(--tl-bg);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.tl-btn:hover {
  background: oklch(0.28 0.01 260);
}

.tl-btn-outline {
  background: transparent;
  color: var(--tl-text);
  border: 1.5px solid oklch(0.85 0.005 90);
}

.tl-btn-outline:hover {
  background: oklch(0.96 0.004 90);
}

.tl-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.tl-main-wide {
  max-width: 960px;
}

.tl-main h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.tl-meta {
  font-size: 14px;
  color: var(--tl-muted);
  margin: 0 0 40px;
}

.tl-main h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.tl-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.tl-main p,
.tl-main li {
  font-size: 15px;
  color: oklch(0.35 0.01 260);
}

.tl-main ul,
.tl-main ol {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.tl-main a {
  color: oklch(0.35 0.1 128);
  font-weight: 500;
}

.tl-contact-card {
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}

.tl-contact-card dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tl-muted);
  margin-bottom: 4px;
}

.tl-contact-card dd {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--tl-text);
}

.tl-contact-card dd:last-child {
  margin-bottom: 0;
}

.tl-footer {
  background: var(--tl-dark);
  color: var(--tl-dark-muted);
  padding: 48px 24px 28px;
}

.tl-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.tl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.tl-footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 0 12px;
}

.tl-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: oklch(0.96 0.005 90);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.tl-footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--tl-dark-muted);
  text-decoration: none;
  padding: 5px 0;
}

.tl-footer-col a:hover {
  color: oklch(0.96 0.005 90);
}

.tl-footer-bottom {
  border-top: 1px solid oklch(0.3 0.01 260);
  padding-top: 24px;
  font-size: 12.5px;
  color: oklch(0.55 0.01 90);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.tl-footer-bottom a {
  color: oklch(0.7 0.01 90);
}

@media (max-width: 768px) {
  .tl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tl-nav .tl-nav-hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .tl-footer-grid {
    grid-template-columns: 1fr;
  }

  .tl-main h1 {
    font-size: 30px;
  }
}

/* ── Cookie consent ── */

.tl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px;
  pointer-events: none;
}

.tl-cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--tl-dark);
  color: oklch(0.9 0.005 90);
  border: 1px solid oklch(0.3 0.01 260);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 48px -12px oklch(0.1 0.01 260 / 0.5);
  pointer-events: auto;
}

.tl-cookie-banner-text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: oklch(0.78 0.01 90);
}

.tl-cookie-banner-text a {
  color: var(--tl-accent);
  font-weight: 500;
}

.tl-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tl-cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.tl-cookie-btn-primary {
  background: var(--tl-accent);
  color: var(--tl-dark);
}

.tl-cookie-btn-primary:hover {
  background: oklch(0.78 0.17 128);
}

.tl-cookie-btn-secondary {
  background: oklch(0.27 0.01 260);
  color: oklch(0.9 0.005 90);
  border: 1px solid oklch(0.35 0.01 260);
}

.tl-cookie-btn-secondary:hover {
  background: oklch(0.32 0.01 260);
}

.tl-cookie-btn-ghost {
  background: transparent;
  color: oklch(0.7 0.01 90);
  text-decoration: underline;
  padding: 10px 8px;
}

.tl-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: oklch(0.1 0.01 260 / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tl-cookie-modal {
  background: var(--tl-surface);
  color: var(--tl-text);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
}

.tl-cookie-modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tl-cookie-modal > p {
  font-size: 14px;
  color: var(--tl-muted);
  margin: 0 0 24px;
}

.tl-cookie-pref {
  border: 1px solid var(--tl-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.tl-cookie-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tl-cookie-pref-header strong {
  font-size: 14.5px;
}

.tl-cookie-pref p {
  font-size: 13px;
  color: var(--tl-muted);
  margin: 0;
  line-height: 1.5;
}

.tl-cookie-pref-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: oklch(0.94 0.005 90);
  color: var(--tl-muted);
  flex-shrink: 0;
}

.tl-cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.tl-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tl-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: oklch(0.85 0.005 90);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.tl-cookie-toggle span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px oklch(0.2 0.01 260 / 0.2);
}

.tl-cookie-toggle input:checked + span {
  background: var(--tl-accent);
}

.tl-cookie-toggle input:checked + span::after {
  transform: translateX(20px);
}

.tl-cookie-toggle input:disabled + span {
  opacity: 0.6;
  cursor: not-allowed;
}

.tl-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .tl-cookie-toggle span,
  .tl-cookie-toggle span::after {
    transition: none;
  }
}
