/* Shared layout for Privacy / Terms / Advertising pages */

@import url('/sq-wordmark.css');

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

:root {
  --legal-bg: #080a0c;
  --legal-panel: #101418;
  --legal-border: rgba(255, 255, 255, 0.12);
  --legal-muted: rgba(255, 255, 255, 0.58);
  --legal-muted2: rgba(255, 255, 255, 0.38);
  --legal-text: #f7f8fa;
  --legal-orange: #ff6b00;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 107, 0, 0.18), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(79, 195, 247, 0.12), transparent 38%),
    var(--legal-bg);
  color: var(--legal-text);
  font: 400 17px / 1.55 Barlow, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.legal-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--legal-border);
  background: rgba(8, 10, 12, 0.92);
  backdrop-filter: blur(14px);
}

.legal-head a.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font: 800 26px / 1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

.legal-head img {
  width: 34px;
  height: 34px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--legal-border);
  background: rgba(16, 20, 24, 0.9);
  color: var(--legal-muted);
  text-decoration: none;
  font: 700 11px / 1 'Barlow Condensed', Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a:hover {
  color: #fff;
  border-color: rgba(255, 107, 0, 0.45);
}

main.legal-main {
  max-width: min(760px, calc(100vw - 28px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) 14px clamp(96px, 18vw, 140px);
}

.legal-meta {
  font-size: 12px;
  color: var(--legal-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

h1 {
  margin: 0 0 10px;
  font: 800 clamp(34px, 5vw, 48px) / 0.95 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

.updated {
  font-size: 14px;
  color: var(--legal-muted);
  margin: 0 0 26px;
}

.doc {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  background: rgba(16, 20, 24, 0.78);
}

.doc h2 {
  margin: 28px 0 10px;
  font: 800 22px / 1.15 'Barlow Condensed', sans-serif;
}

.doc h2:first-of-type {
  margin-top: 0;
}

.doc p,
.doc ul,
.doc ol {
  color: rgba(247, 248, 250, 0.9);
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: var(--legal-orange);
  text-underline-offset: 3px;
}

.todo {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 107, 0, 0.65);
  background: rgba(255, 107, 0, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.todo strong {
  color: #ffc48a;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
