/* ============================================================
   Ice Media Technology — Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

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

.legal-page {
  background-color: #0E161E;
  color: #EAF4F8;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: #5AC8D8;
  text-decoration: none;
}

.legal-page a:hover {
  color: #C9EDF2;
  text-decoration: underline;
}

/* ---------- Header (must be header/div with solid background) ---------- */
.legal-header {
  background-color: #1E4A5C;
  border-bottom: 3px solid #5AC8D8;
  padding: 56px 0 44px;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #C9EDF2;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
}

.legal-brand:hover {
  color: #EAF4F8;
  text-decoration: none;
}

.legal-brand-mark {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #5AC8D8;
}

.legal-brand-word {
  color: inherit;
}

.legal-header h1 {
  color: #EAF4F8;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal-header-sub {
  color: #C9EDF2;
  font-size: 15px;
}

/* ---------- Content ---------- */
.legal-content {
  padding: 48px 0 56px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scope isolation: guarantee legal sections are never painted by any
   homepage section styling that shares an id */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: #EAF4F8 !important;
}

.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  color: #C9EDF2;
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1C2B35;
}

.legal-content h3 {
  color: #EAF4F8;
  font-size: 19px;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #B8CDD8;
  font-size: 16px;
  margin-bottom: 16px;
}

.legal-content section:target h2 {
  color: #5AC8D8;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #16242E;
  border: 1px solid #1C2B35;
  border-left: 3px solid #5AC8D8;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.toc-title {
  color: #D7E5EA;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc ol li a {
  color: #B8CDD8;
  font-size: 15px;
}

.toc ol li a:hover {
  color: #5AC8D8;
}

/* ---------- Back to home link ---------- */
.back-home {
  margin-top: 24px;
}

.back-home a {
  font-weight: 600;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0A1319;
  border-top: 1px solid #1C2B35;
  padding: 24px 0;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #B8CDD8;
}

.legal-footer-links {
  display: flex;
  gap: 20px;
}

.legal-footer-links a {
  color: #D7E5EA;
}

.legal-footer-links a:hover {
  color: #5AC8D8;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
