/* =====================================================
   LEGAL PAGE - Modern Apple-Inspired Design
   ===================================================== */

:root {
  --primary-orange: #FF6600;
  --primary-blue: #00AAFF;
  --dark-bg: #0a0a0a;
  --light-gray: #f8f9fa;
  --border-color: #e5e5e5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --font-main: 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  background: #ffffff;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-orange) !important;
}

/* ===== HERO HEADER ===== */
.legal-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
  padding: 8rem 0 4rem;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 170, 255, 0.1) 0%, transparent 50%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ===== MAIN CONTENT WRAPPER ===== */
.legal-content-wrapper {
  padding: 4rem 0;
  background: #ffffff;
}

/* ===== STICKY SIDEBAR ===== */
.legal-sidebar {
  padding-top: 2rem;
  top: 100px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav > li {
  margin-bottom: 0.5rem;
}

.sidebar-nav > li > a {
  display: block;
  padding: 0.5rem 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s ease;
}

.sidebar-nav > li > a:hover,
.sidebar-nav > li > a.active {
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
}

.sidebar-subnav {
  list-style: none;
  padding: 0.5rem 0 0 1.5rem;
  margin: 0;
}

.sidebar-subnav li {
  margin-bottom: 0.25rem;
}

.sidebar-subnav a {
  display: block;
  padding: 0.25rem 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-subnav a:hover {
  color: var(--primary-orange);
}

/* ===== LEGAL DOCUMENT ===== */
.legal-document {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 5rem;
}

.section-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.content-block h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-block h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-block p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-block ul,
.content-block ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.content-block a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-block a:hover {
  color: #cc5200;
  text-decoration: underline;
}

/* ===== INFO CARDS ===== */
.info-card {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h4 {
  margin-top: 0;
  color: var(--text-primary);
}

/* ===== PURPOSE GRID ===== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.purpose-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.purpose-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.purpose-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.purpose-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.purpose-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== SHARING LIST ===== */
.sharing-list {
  margin-top: 1.5rem;
}

.sharing-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.sharing-item:last-child {
  border-bottom: none;
}

.sharing-item h5 {
  margin-bottom: 0.5rem;
}

.sharing-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== IMPORTANT NOTE ===== */
.important-note {
  background: linear-gradient(135deg, #fff5f0 0%, #ffe5d9 100%);
  border-left: 4px solid var(--primary-orange);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 500;
}

/* ===== RIGHTS TABLE ===== */
.rights-table {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.right-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--border-color);
}

.right-row:last-child {
  border-bottom: none;
}

.right-name {
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  font-weight: 600;
  border-right: 1px solid var(--border-color);
}

.right-desc {
  padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .right-row {
    grid-template-columns: 1fr;
  }
  
  .right-name {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.exercise-rights {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  text-align: center;
}

/* ===== CCPA RIGHTS GRID ===== */
.ccpa-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ccpa-right {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-orange);
}

.ccpa-right h5 {
  margin-top: 0;
  color: var(--text-primary);
}

.ccpa-right p {
  margin: 0;
  font-size: 15px;
}

.ccpa-contact {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.ccpa-contact p {
  margin-bottom: 0.5rem;
}

.ccpa-contact ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
}

/* ===== COOKIE TYPES ===== */
.cookie-types {
  margin-top: 1.5rem;
}

.cookie-type {
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.cookie-type strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== SECURITY NOTE ===== */
.security-note {
  background: #fff8e6;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 15px;
}

/* ===== AGE RESTRICTION ===== */
.age-restriction {
  background: var(--light-gray);
  border-left: 4px solid var(--primary-blue);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* ===== TRADEMARK NOTICE ===== */
.trademark-notice {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.trademark-notice h5 {
  margin-top: 0;
}

.trademark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.trademark-list span {
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

.trademark-warning {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
  background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
  border: 1px solid #ffcccc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.disclaimer-box h5 {
  margin-top: 0;
  color: #cc0000;
}

.liability-cap {
  background: var(--light-gray);
  border-left: 4px solid var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* ===== LAW DETAILS ===== */
.law-details {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.law-details p {
  margin-bottom: 1.5rem;
}

.law-details p:last-child {
  margin-bottom: 0;
}

.law-details ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-method h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-method p {
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.contact-method p:last-child {
  margin-bottom: 0;
}

.contact-note {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-style: italic;
}

.response-time {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.response-time p {
  margin: 0;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.legal-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  margin-top: 4rem;
}

.legal-footer p {
  margin: 0;
  font-size: 14px;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 14px;
  transition: color 0.2s ease;
}

.legal-footer a:hover {
  color: var(--primary-orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .legal-hero {
    padding: 6rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .legal-sidebar {
    display: none;
  }
  
  .legal-document {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 5rem 0 2.5rem;
  }
  
  .legal-content-wrapper {
    padding: 2rem 0;
  }
  
  .purpose-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-footer a {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
