/* ===== LEGAL PAGES (Privacy, Terms, Cookies) ===== */

.legal-hero {
  position: relative;
  width: 100%;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--iron);
  padding: 120px 0 72px;
}

.legal-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(10, 10, 12, 0.94) 0%,
    rgba(10, 10, 12, 0.72) 55%,
    rgba(10, 10, 12, 0.35) 100%
  );
}

[data-theme="light"] .legal-hero .page-hero-overlay {
  background: linear-gradient(
    108deg,
    rgba(242, 240, 236, 0.96) 0%,
    rgba(242, 240, 236, 0.78) 55%,
    rgba(242, 240, 236, 0.2) 100%
  );
}

.legal-hero .page-hero-slash {
  position: absolute;
  top: 0;
  right: 28%;
  bottom: 0;
  z-index: 2;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 123, 0, 0.25) 30%,
    rgba(255, 123, 0, 0.25) 70%,
    transparent
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.legal-hero .page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

.legal-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 22px;
}

.legal-hero .breadcrumb a {
  color: var(--text);
  transition: color 0.2s;
}

.legal-hero .breadcrumb a:hover {
  color: var(--gold);
}

.legal-hero .breadcrumb .eline {
  width: 40px;
  height: 1px;
  background: var(--text);
}

.legal-hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 4.5vw, 72px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-hero-title .gold {
  color: var(--gold);
}

.legal-hero-desc {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--text2);
  max-width: 640px;
}

.legal-hero-meta {
  margin-top: 20px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
}

.gold-strip {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--gold2) 30%,
    transparent 70%
  );
}

.sec {
  max-width: 1920px;
  margin: 0 auto;
  padding: 96px 80px;
}

#legal-content {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  max-width: 100%;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 100%;
}

.legal-layout > * {
  min-width: 0;
  max-width: 100%;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px 20px;
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}

.legal-sidebar-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.legal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-sidebar-nav a {
  display: block;
  padding: 10px 12px;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.legal-sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255, 123, 0, 0.06);
}

.legal-sidebar-nav a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(255, 123, 0, 0.08);
}

.legal-doc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 40px 44px;
  max-width: 100%;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
}

.legal-doc-intro {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text2);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.35;
  margin-bottom: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-section h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  vertical-align: 0.12em;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.legal-section h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 20px 0 10px;
  overflow-wrap: anywhere;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text2);
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text2);
  margin-bottom: 8px;
}

.legal-section li::marker {
  color: var(--gold);
}

.legal-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-section a:hover {
  opacity: 0.85;
}

.legal-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 4px;
  border: 1px solid var(--border);
}

.legal-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 9.5rem;
  overflow-wrap: anywhere;
}

.legal-table th {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 123, 0, 0.06);
}

.legal-table td {
  color: var(--text2);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-contact-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255, 123, 0, 0.06);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold);
}

.legal-contact-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

/* Full-document legal pages (e.g. Digital Media Policy from Word import) */
.legal-doc-body {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-doc-body h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.35;
  margin: 36px 0 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-doc-body h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  vertical-align: 0.12em;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.legal-doc-body h2.legal-doc-part-title {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-top: 0;
}

.legal-doc-body h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 20px 0 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legal-doc-body p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text2);
  margin-bottom: 12px;
}

.legal-doc-body ul,
.legal-doc-body ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal-doc-body li {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text2);
  margin-bottom: 8px;
}

.legal-doc-body li::marker {
  color: var(--gold);
}

.legal-doc-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc-body a:hover {
  opacity: 0.85;
}

.legal-doc-body .legal-table-wrap {
  margin: 16px 0 4px;
}

.legal-quote {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 123, 0, 0.06);
}

.legal-quote p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.legal-quote p:last-child {
  margin-bottom: 0;
}

.legal-doc--media-policy {
  max-width: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .legal-hero .page-hero-content,
  .sec {
    padding-left: 40px;
    padding-right: 40px;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .legal-sidebar {
    position: static;
    top: auto;
  }

  .legal-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .legal-doc {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    min-height: auto;
    padding: 100px 0 40px;
  }

  .legal-hero .page-hero-content,
  .sec {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sec {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .legal-hero-title {
    font-size: clamp(17px, 5vw, 26px);
    letter-spacing: 0;
    line-height: 1.2;
  }

  .legal-hero-desc {
    max-width: 100%;
  }

  .legal-hero .breadcrumb {
    letter-spacing: 1.2px;
    gap: 8px;
  }

  .legal-doc,
  .legal-sidebar {
    clip-path: none;
    padding: 20px 16px;
  }

  .legal-doc-body h2,
  .legal-section h2,
  .legal-doc-body h2.legal-doc-part-title {
    font-size: 15px;
    letter-spacing: 0;
  }

  .legal-doc-body h3,
  .legal-section h3 {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .legal-doc-body p,
  .legal-doc-body li,
  .legal-section p,
  .legal-section li,
  .legal-quote p {
    font-size: 14px;
  }

  .legal-quote {
    padding: 14px 14px;
  }

  .legal-contact-box {
    padding: 16px;
  }

  .legal-table {
    font-size: 13px;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .legal-hero .page-hero-content,
  .sec {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .legal-hero .breadcrumb .eline {
    display: none;
  }
}
