/* SunSpots Legal Pages — Premium Warm Cream Theme */

:root {
  --cream: #FAF7F2;
  --amber: #F5A623;
  --amber-light: #FFE8C1;
  --text-dark: #2C2416;
  --text-light: #6B6360;
  --border: #E8DFD5;
  --accent: #FF6B6B;
  --success: #4ECB71;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1815;
    --amber: #FFB84D;
    --amber-light: #2C2416;
    --text-dark: #FAF7F2;
    --text-light: #B8AFA0;
    --border: #3A3530;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  color: var(--amber);
  border-bottom: 3px solid var(--amber);
  padding-bottom: 0.5em;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.2em;
  color: var(--text-light);
}

a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dashed var(--amber);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--text-dark);
  border-bottom-style: solid;
  background-color: var(--amber-light);
  padding: 0 4px;
}

/* Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  color: var(--text-dark);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--amber);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.15);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: var(--text-dark);
  opacity: 0.85;
}

main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

footer {
  background-color: var(--amber-light);
  color: var(--text-dark);
  padding: 2rem;
  text-align: center;
  border-top: 2px solid var(--amber);
  font-size: 0.95rem;
}

/* Content Sections */
section {
  margin-bottom: 3rem;
}

section > h2 {
  margin-top: 2.5rem;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2em;
  color: var(--text-light);
}

li {
  margin-bottom: 0.7em;
}

ul ul, ol ol {
  margin-top: 0.5em;
  margin-left: 1.2rem;
}

/* Code / Highlights */
code {
  background-color: var(--amber-light);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--text-dark);
}

pre {
  background-color: var(--amber-light);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.2em;
  border-left: 4px solid var(--amber);
}

/* Navigation / Links */
nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

nav a:hover {
  border-bottom-color: var(--amber);
  background: none;
  padding: 0;
}

/* Language Toggle */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.lang-toggle a {
  background-color: var(--amber);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
  background: none;
  padding: 0.5rem 1rem;
}

.lang-toggle a.active {
  background-color: var(--text-dark);
  color: var(--cream);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

thead {
  background-color: var(--amber-light);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 700;
  color: var(--text-dark);
}

tr:hover {
  background-color: var(--amber-light);
}

/* Callouts / Boxes */
.callout {
  background-color: var(--amber-light);
  border-left: 4px solid var(--amber);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.callout-warning {
  border-left-color: var(--accent);
  background-color: rgba(255, 107, 107, 0.1);
}

.callout-success {
  border-left-color: var(--success);
  background-color: rgba(78, 203, 113, 0.1);
}

/* Contact Section */
.contact-section {
  background-color: var(--amber-light);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.contact-section h3 {
  color: var(--amber);
}

.contact-section a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Last Updated */
.last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  main {
    padding: 2rem 1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .lang-toggle {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  .lang-toggle a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  header {
    padding: 1.5rem 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--amber);
  }
}

/* Print Styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  header, footer {
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  a {
    color: #0066cc;
    border-bottom: 1px solid #0066cc;
  }

  nav, .lang-toggle {
    display: none;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  h2 {
    border-bottom: 2px solid black;
    page-break-inside: avoid;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > * {
  animation: fadeIn 0.5s ease;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

button, a {
  position: relative;
}

a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
