/* SunSpot Legal Pages - Shared Stylesheet */
/* Sun-themed, professional, mobile-first design */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  /* Sun-inspired warm palette */
  --sun-gold: #F5A623;
  --sun-amber: #E8912D;
  --sun-warm: #FFF8F0;
  --sun-cream: #FFFDF9;
  --sun-peach: #FFE8D6;
  --sun-terracotta: #C4703F;
  
  /* Neutral tones */
  --text-primary: #2D2A26;
  --text-secondary: #5C564E;
  --text-muted: #8A8279;
  --border-light: #E8E4DE;
  --border-warm: #F0E6DA;
  
  /* Sizing */
  --max-width: 760px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--sun-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle warm gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(
    180deg,
    rgba(245, 166, 35, 0.08) 0%,
    rgba(255, 232, 214, 0.12) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-warm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

.page-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Document title */
.document-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-warm);
}

.document-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.effective-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.effective-date::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sun-gold);
  border-radius: 50%;
}

/* Introduction text */
.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--sun-gold) 0%, var(--sun-amber) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.25);
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.section-title-text {
  flex: 1;
}

.section-content {
  padding-left: 40px;
}

.section-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Lists */
.section-content ul,
.section-content ol {
  margin: 16px 0;
  padding-left: 20px;
}

.section-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  padding-left: 8px;
}

.section-content li:last-child {
  margin-bottom: 0;
}

.section-content ul li::marker {
  color: var(--sun-amber);
}

.section-content ol li::marker {
  color: var(--sun-amber);
  font-weight: 600;
}

/* Nested lists */
.section-content ul ul,
.section-content ol ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Feature list (for Terms) */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--border-warm);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '☀';
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 0.9rem;
}

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

/* Emphasis and links */
strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

a {
  color: var(--sun-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(196, 112, 63, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--sun-amber);
  text-decoration-color: var(--sun-amber);
}

/* Info callout */
.info-callout {
  background: var(--sun-warm);
  border-left: 3px solid var(--sun-gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-callout p {
  margin: 0;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--sun-warm);
  border-top: 1px solid var(--border-warm);
  padding: 32px 24px;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sun-amber);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }
  
  .header-inner {
    padding: 0 16px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .header-divider {
    height: 20px;
  }
  
  .page-title {
    font-size: 0.85rem;
  }
  
  main {
    padding: 32px 16px 60px;
  }
  
  .document-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.15rem;
  }
  
  .section-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    margin-right: 10px;
  }
  
  .section-content {
    padding-left: 34px;
  }
  
  .intro-text {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .header-divider,
  .page-title {
    display: none;
  }
  
  .document-title {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  body::before {
    display: none;
  }
  
  .header {
    position: static;
    background: white;
  }
  
  main {
    padding: 24px 0;
  }
  
  .section-number {
    background: var(--text-primary);
    box-shadow: none;
  }
}

