/*
* Bright Materials - Legal Pages Stylesheet
* Loaded by privacy.html and terms-of-service.html
*/

:root {
  --lg-bg: #fafafc;
  --lg-surface: #ffffff;
  --lg-text: #1a1a2e;
  --lg-text-light: #3d3d5c;
  --lg-muted: #6b6b82;
  --lg-border: #e2e2ee;
  --lg-border-light: #eeeef5;
  --lg-accent: #ff6b35;
  --lg-accent-hover: #e55d2b;
  --lg-purple: #7b2ff7;
  --lg-green: #22c55e;
  --lg-shadow: 0 1px 6px rgba(0,0,0,0.06);
  --lg-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --lg-radius: 8px;
  --lg-radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lg-text);
  background-color: var(--lg-bg);
}

/* ========== Legal Navbar ========== */

.legal-nav {
  background: var(--lg-surface);
  border-bottom: 1px solid var(--lg-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1.5rem;
}

.legal-nav .ln-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.legal-nav .ln-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lg-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-nav .ln-brand .ln-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--lg-accent), var(--lg-purple));
  border-radius: var(--lg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 800;
}

.legal-nav .ln-home {
  color: var(--lg-accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-nav .ln-home:hover {
  color: var(--lg-accent-hover);
}

/* ========== Legal Page Layout ========== */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.legal-page header {
  margin-bottom: 2rem;
}

.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lg-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.legal-page .effective-date {
  font-size: 0.9rem;
  color: var(--lg-muted);
}

/* ========== Table of Contents ========== */

.toc {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lg-text);
  margin-bottom: 0.8rem;
}

.toc ol {
  list-style-position: inside;
  columns: 2;
  column-gap: 2rem;
}

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

.toc ol li a {
  color: var(--lg-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  line-height: 1.5;
}

.toc ol li a:hover {
  color: var(--lg-accent-hover);
  text-decoration: underline;
}

/* ========== Legal Content ========== */

.legal-content {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 2.5rem 2.5rem 1.5rem;
  box-shadow: var(--lg-shadow);
}

.legal-content section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lg-border-light);
}

.legal-content section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lg-text);
  margin-bottom: 0.7rem;
  padding-top: 0.2rem;
  scroll-margin-top: 80px;
}

.legal-content h2 .section-number {
  color: var(--lg-accent);
  margin-right: 0.3rem;
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--lg-text-light);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content ul li,
.legal-content ol li {
  color: var(--lg-text-light);
  margin-bottom: 0.4rem;
  line-height: 1.6;
  padding-left: 0.2rem;
}

.legal-content strong {
  color: var(--lg-text);
  font-weight: 600;
}

.back-to-top {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--lg-accent);
  text-decoration: none;
  font-weight: 500;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* ========== Legal Footer ========== */

.legal-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--lg-border);
  color: var(--lg-muted);
  font-size: 0.82rem;
  background: var(--lg-bg);
}

.legal-footer a {
  color: var(--lg-accent);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* ========== Responsive ========== */

@media (max-width: 700px) {
  .legal-page {
    padding: 1.5rem 1rem 1rem;
  }

  .legal-page h1 {
    font-size: 1.7rem;
  }

  .legal-content {
    padding: 1.5rem 1.2rem 1rem;
  }

  .toc {
    padding: 1.2rem;
  }

  .toc ol {
    columns: 1;
  }

  .legal-content h2 {
    font-size: 1.15rem;
  }
}
