﻿/* Apple-Style Legal Pages Styling */
:root {
  --legal-primary: #06c;
  --legal-accent: #0056b3;
  --legal-text: #1d1d1f;
  --legal-muted: #86868b;
  --legal-bg: #ffffff;
  --legal-section-bg: #f5f5f7;
  --legal-border: #d2d2d7;
  --legal-code-bg: #eef;
}
/* Base Styles */
html {
  scroll-behavior: smooth;
}
.ns-legal {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--bg-color, #ffffff);
  color: var(--text-primary, #1d1d1f);
}
.ns-logo-wrapper {
  text-align: center;
}
.ns-logo-wrapper .ns-logo-large {
  width: 80px;
  height: 80px;
  opacity: 0.9;
  margin: auto;
}
.legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 40px;
}
/* Header */
.legal-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.legal-header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.003em;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.legal-header .last-updated {
  display: inline-block;
  font-size: 14px;
  color: #86868b;
  font-weight: 400;
  margin-top: 8px;
}
/* Introduction */
.legal-intro {
  font-size: 21px;
  line-height: 1.47059;
  font-weight: 400;
  color: #1d1d1f;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Table of Contents */
.legal-toc {
  background: #fbfbfd;
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 60px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.legal-toc h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1d1d1f;
  margin-top: 0;
}
.legal-toc ol {
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px 30px;
}
.legal-toc ol li {
  counter-increment: toc-counter;
}
.legal-toc ol li a {
  display: flex;
  align-items: baseline;
  color: #06c;
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.legal-toc ol li a:before {
  content: counter(toc-counter) ". ";
  font-weight: 500;
  margin-right: 8px;
  color: #86868b;
  font-variant-numeric: tabular-nums;
}
.legal-toc ol li a:hover {
  text-decoration: underline;
}
/* Main Content Typography */
.legal-content h2 {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 700;
  letter-spacing: 0.004em;
  margin-top: 60px;
  margin-bottom: 24px;
  color: #1d1d1f;
  scroll-margin-top: 100px;
}
.legal-content h3 {
  font-size: 21px;
  line-height: 1.19048;
  font-weight: 600;
  letter-spacing: 0.011em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #1d1d1f;
  scroll-margin-top: 100px;
}
.legal-content p {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: #333336;
  margin-bottom: 24px;
}
.legal-content ul,
.legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}
.legal-content ul li,
.legal-content ol li {
  font-size: 17px;
  line-height: 1.47059;
  color: #333336;
  margin-bottom: 12px;
  padding-left: 8px;
}
.legal-content ul li strong,
.legal-content ol li strong {
  font-weight: 600;
  color: #1d1d1f;
}
.legal-content a {
  color: #06c;
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
/* Callout Boxes */
.legal-highlight,
.legal-note {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 24px 30px;
  margin: 30px 0;
  border: none;
}
.legal-highlight p,
.legal-note p {
  margin: 0;
  font-size: 16px;
  color: #1d1d1f;
}
.legal-highlight strong,
.legal-note strong {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #1d1d1f;
}
.legal-highlight {
  background: #f2f7ff;
  /* VERY subtle blue tint */
}
/* Tables */
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  font-size: 15px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  overflow: hidden;
}
.legal-table th {
  background: #f5f5f7;
  color: #1d1d1f;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid #d2d2d7;
}
.legal-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #d2d2d7;
  color: #333336;
  line-height: 1.4;
}
.legal-table tr:last-child td {
  border-bottom: none;
}
/* Navigation */
.ns-nav {
  border-bottom: 1px solid var(--legal-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}
/* Footer */
.ns-footer {
  background: var(--legal-text);
  color: white;
  padding: 2rem 0;
  margin-top: 5rem;
}
.ns-footer a {
  color: white;
  margin: 0 0.5rem;
}
.ns-footer a:hover {
  color: var(--legal-primary);
}
/* Back to top link */
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--legal-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 3rem;
  transition: all 0.3s ease;
}
.legal-back-link:hover {
  background: var(--legal-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}
/* Contact Box */
.legal-contact-box {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}
.legal-contact-box h3 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.legal-contact-box p {
  color: #6e6e73;
  margin-bottom: 12px;
  font-size: 16px;
}
.legal-contact-box a {
  font-weight: 600;
  color: #06c;
}
/* Responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 40px 20px;
  }
  .legal-header h1 {
    font-size: 36px;
  }
  .legal-intro {
    font-size: 19px;
  }
  .legal-toc {
    padding: 24px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}