/* Cricket Broadcast — Privacy Policy */

:root {
  --bg: #0c1410;
  --bg-elevated: #121f18;
  --bg-card: #162820;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8f0eb;
  --text-muted: #9cb0a4;
  --accent: #3dd68c;
  --accent-dim: rgba(61, 214, 140, 0.15);
  --accent-glow: rgba(61, 214, 140, 0.35);
  --gold: #e8c547;
  --link: #6ee7a8;
  --link-hover: #a7f3c9;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --max-content: 720px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 214, 140, 0.12), transparent),
    radial-gradient(circle at 100% 100%, rgba(232, 197, 71, 0.06), transparent 40%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 20, 16, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  display: flex;
  color: var(--accent);
}

.brand-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-package {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--accent);
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.toc {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover,
.toc a.active {
  color: var(--accent);
}

.toc a.active {
  font-weight: 600;
}

/* Content */
.content {
  min-width: 0;
}

.policy {
  max-width: var(--max-content);
}

.policy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.policy-header h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.meta-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0 0 1.25rem;
}

.meta-dates dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.meta-dates dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.consent-note {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

.section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
}

.section h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.section p,
.section li {
  color: var(--text-muted);
}

.section p strong,
.section li strong {
  color: var(--text);
}

.section ul {
  padding-left: 1.25rem;
}

.section ul li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

.info-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.05);
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  margin-bottom: 1rem;
}

.contact-list > div:last-child {
  margin-bottom: 0;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.05rem;
}

.highlight-box {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(61, 214, 140, 0.25);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--bg-elevated);
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-list a::after {
  content: "↗";
  font-size: 0.75rem;
  opacity: 0.7;
}

.section-play {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.section-play h2 {
  margin-top: 0;
}

.section-intro {
  font-size: 0.95rem;
}

.check-list li {
  position: relative;
  list-style: none;
  padding-left: 1.5rem;
  margin-left: -1.25rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner p {
  margin: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-app code {
  font-size: 0.8em;
  padding: 0.15em 0.4em;
  background: var(--bg-elevated);
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .toc ol {
    columns: 2;
    column-gap: 1.5rem;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .toc ol {
    columns: 1;
  }

  .meta-dates {
    flex-direction: column;
    gap: 1rem;
  }

  th,
  td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media print {
  body {
    background: white;
    color: #111;
  }

  .site-header,
  .sidebar,
  .skip-link,
  script {
    display: none !important;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .section,
  .policy-header,
  a {
    color: #111 !important;
  }

  .table-wrap {
    border-color: #ccc;
  }
}
