/* ============================================================
   LEGAL PAGES SHARED STYLESHEET
   privacy-policy.html | terms-of-use.html | accessibility.html
   ============================================================ */

/* ---- HERO ---- */
.legal-hero {
  position: relative;
  background: var(--black, #0a0a0a);
  padding: 140px 0 80px;
  overflow: hidden;
}
.legal-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(255,107,0,0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.06) 0%, transparent 50%);
}
.legal-hero--tou   .legal-hero-bg { background: radial-gradient(ellipse at 70% 50%, rgba(0,107,255,0.10) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(255,107,0,0.06) 0%, transparent 50%); }
.legal-hero--access .legal-hero-bg { background: radial-gradient(ellipse at 50% 50%, rgba(0,180,100,0.10) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.06) 0%, transparent 50%); }

.legal-hero-content {
  position: relative;
  z-index: 2;
}
.legal-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--orange, #ff6b00);
  margin-bottom: 24px;
}
.legal-hero--tou   .legal-hero-icon { background: rgba(0,107,255,0.12); border-color: rgba(0,107,255,0.25); color: #4d9fff; }
.legal-hero--access .legal-hero-icon { background: rgba(0,180,100,0.12); border-color: rgba(0,180,100,0.25); color: #00b464; }

.legal-hero-content h1 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.1;
}
.legal-hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
  max-width: 600px;
  line-height: 1.6;
}
.legal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}
.legal-meta span i { color: var(--orange, #ff6b00); }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--orange, #ff6b00); }
.page-breadcrumb i { font-size: 10px; color: rgba(255,255,255,0.25); }

/* ---- BODY LAYOUT ---- */
.legal-body {
  background: #f4f5f7;
  padding: 64px 0 80px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- SIDEBAR TOC ---- */
.legal-toc {
  position: sticky;
  top: 100px;
}
.legal-toc-inner {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
}
.legal-toc-inner h2 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.legal-toc nav ol {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: toc-counter;
}
.legal-toc nav ol li {
  counter-increment: toc-counter;
  margin-bottom: 4px;
}
.legal-toc nav ol li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.4;
}
.legal-toc nav ol li a::before {
  content: counter(toc-counter);
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  min-width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.legal-toc nav ol li a:hover,
.legal-toc nav ol li a.active {
  background: rgba(255,107,0,0.08);
  color: var(--orange, #ff6b00);
}
.legal-toc nav ol li a.active::before { color: var(--orange, #ff6b00); }

/* TOC bottom links */
.legal-toc-links {
  border-top: 1px solid #eee;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}
.legal-toc-links a:hover { background: rgba(255,107,0,0.06); color: var(--orange, #ff6b00); }
.legal-toc-links a i { width: 16px; text-align: center; color: var(--orange, #ff6b00); font-size: 13px; }

/* TOC help box (accessibility page) */
.legal-toc-help {
  margin-top: 16px;
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.15);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.legal-toc-help > i { color: var(--orange, #ff6b00); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.legal-toc-help div { font-size: 12px; line-height: 1.5; color: #555; }
.legal-toc-help strong { display: block; font-weight: 700; color: #333; margin-bottom: 4px; }
.legal-toc-help a { color: var(--orange, #ff6b00); text-decoration: none; font-weight: 600; }
.legal-toc-help a:hover { text-decoration: underline; }

/* ---- CONTENT ARTICLE ---- */
.legal-content {
  background: #fff;
  border-radius: 16px;
  padding: 52px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

/* ---- SECTIONS ---- */
.legal-section {
  padding-top: 48px;
  margin-top: 0;
  border-top: 1px solid #edf0f3;
  margin-bottom: 0;
}
.legal-section:first-of-type {
  padding-top: 0;
  border-top: none;
}
.legal-section h2 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}
.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,107,0,0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--orange, #ff6b00);
  flex-shrink: 0;
}
.legal-section h3 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 28px 0 12px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin: 0 0 16px;
}
.legal-section ul,
.legal-section ol {
  padding-left: 0;
  margin: 0 0 20px;
  list-style: none;
}
.legal-section ul li,
.legal-section ol li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange, #ff6b00);
}
.legal-section ol { counter-reset: ol-counter; }
.legal-section ol li { counter-increment: ol-counter; }
.legal-section ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 2px;
  top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange, #ff6b00);
}
.legal-section a {
  color: var(--orange, #ff6b00);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,107,0,0.3);
  transition: all 0.2s;
}
.legal-section a:hover {
  border-bottom-color: var(--orange, #ff6b00);
}

/* ---- CALLOUT BOXES ---- */
.legal-callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  align-items: flex-start;
}
.legal-callout > i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-callout > div { flex: 1; }
.legal-callout strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.legal-callout p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.legal-callout--blue  { background: rgba(0,107,255,0.06); border: 1px solid rgba(0,107,255,0.15); }
.legal-callout--blue  > i,
.legal-callout--blue  strong { color: #006bff; }
.legal-callout--orange { background: rgba(255,107,0,0.06); border: 1px solid rgba(255,107,0,0.2); }
.legal-callout--orange > i,
.legal-callout--orange strong { color: var(--orange, #ff6b00); }
.legal-callout--green  { background: rgba(0,180,100,0.06); border: 1px solid rgba(0,180,100,0.2); }
.legal-callout--green  > i,
.legal-callout--green  strong { color: #00a855; }

/* ---- TABLES ---- */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table thead th {
  background: #1a1a1a;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.legal-table tbody tr { border-bottom: 1px solid #eee; transition: background 0.15s; }
.legal-table tbody tr:hover { background: rgba(255,107,0,0.03); }
.legal-table tbody td {
  padding: 14px 18px;
  color: #444;
  line-height: 1.5;
  vertical-align: top;
}
.legal-table tbody tr:last-child { border-bottom: none; }

/* Accessibility badges */
.access-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.access-badge--good    { background: rgba(0,180,100,0.12); color: #00a855; }
.access-badge--partial { background: rgba(255,165,0,0.12); color: #cc7a00; }

/* ---- CONTACT BOX ---- */
.legal-contact-box {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
}
.lcb-org {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.lcb-org img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.lcb-org strong {
  display: block;
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.lcb-org span {
  font-size: 13px;
  color: var(--orange, #ff6b00);
  font-weight: 600;
}
.lcb-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lcb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}
.lcb-row i { width: 18px; text-align: center; color: var(--orange, #ff6b00); flex-shrink: 0; }
.lcb-row a { color: #333; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.1); transition: all 0.2s; }
.lcb-row a:hover { color: var(--orange, #ff6b00); border-bottom-color: var(--orange, #ff6b00); }
.lcb-note { font-size: 11px; color: #999; margin-left: 4px; }

/* ---- RELATED POLICIES ---- */
.legal-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid #edf0f3;
}
.legal-related h3 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 20px;
}
.legal-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.legal-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}
.legal-related-card:hover {
  background: rgba(255,107,0,0.05);
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.legal-related-card > i:first-child {
  font-size: 22px;
  color: var(--orange, #ff6b00);
  width: 44px;
  height: 44px;
  background: rgba(255,107,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal-related-card > div { flex: 1; }
.legal-related-card strong {
  display: block;
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}
.legal-related-card span {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}
.legal-related-card > i:last-child {
  font-size: 14px;
  color: #bbb;
  transition: all 0.25s;
}
.legal-related-card:hover > i:last-child { color: var(--orange, #ff6b00); transform: translateX(4px); }

/* ---- ACCESSIBILITY BANNER ---- */
.access-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0,180,100,0.08), rgba(0,180,100,0.04));
  border: 1px solid rgba(0,180,100,0.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.access-banner-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,180,100,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #00b464;
  flex-shrink: 0;
}
.access-banner-text { flex: 1; }
.access-banner-text strong {
  display: block;
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.access-banner-text span { font-size: 14px; color: #555; line-height: 1.6; }

/* ---- ACCESSIBILITY WCAG CARDS ---- */
.access-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.access-standard-card {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s;
}
.access-standard-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.asc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.access-standard-card h3 {
  font-family: var(--font-head, 'Barlow', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
}
.access-standard-card p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* ---- FOOTER ACTIVE LINK ---- */
.footer-bottom-links a.active {
  color: var(--orange, #ff6b00);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: 28px; }
  .legal-content { padding: 40px 36px; }
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc-inner { display: flex; flex-wrap: wrap; gap: 20px; }
  .legal-toc-inner h2 { width: 100%; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
  .legal-toc nav { flex: 1; min-width: 200px; }
  .legal-toc nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .legal-toc nav ol li a { padding: 5px 10px; border-radius: 20px; background: #f0f0f0; font-size: 12px; }
  .legal-toc nav ol li a::before { display: none; }
  .legal-toc-links { border-top: none; flex-direction: row; }
  .access-standards-grid { grid-template-columns: 1fr; }
  .legal-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .legal-hero { padding: 120px 0 60px; }
  .legal-body { padding: 40px 0 60px; }
  .legal-content { padding: 28px 22px; border-radius: 12px; }
  .legal-hero-content h1 { font-size: 32px; }
  .legal-contact-box { padding: 20px; }
  .become-sponsor-cta { flex-direction: column; }
  .access-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .legal-meta { flex-direction: column; gap: 10px; }
  .lcb-org { flex-direction: column; text-align: center; }
  .legal-toc-links { flex-direction: column; }
}
