/* LoveLines Legal Documents - Global Styles */

:root {
  --primary-color: #FDB34A;
  --primary-dark: #E69A35;
  --text-color: #1a1a1a;
  --text-secondary: #666;
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e5e8eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f5f5f5;
    --text-secondary: #b0b0b0;
    --bg-color: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --border-color: #3a3a3a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: block;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0 12px;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .header h1 {
    font-size: 36px;
  }
}

.meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.meta span {
  margin: 0 8px;
}

/* Content */
.content {
  background: var(--bg-color);
}

.content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-top: 16px;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
}

.content h2:first-child {
  border-top: none;
  margin-top: 0;
}

.content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-color);
}

.content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-color);
}

.content p {
  margin: 16px 0;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.7;
}

.content ul,
.content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.content li {
  margin: 8px 0;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.7;
}

.content li::marker {
  color: var(--primary-color);
}

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

.content em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Special Blocks */
.highlight-block {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.highlight-block p {
  margin: 8px 0;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.info-card h3 {
  margin-top: 0;
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 20px;
  border-radius: var(--radius);
  margin: 24px 0;
  text-align: center;
}

.contact-info h3 {
  margin: 0 0 12px;
  color: white;
}

.contact-info a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}

.contact-info a:hover {
  border-bottom-color: white;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 2px solid var(--border-color);
  text-align: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-links a:hover {
  border-bottom-color: var(--primary-color);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Navigation (for index.html) */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nav-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.nav-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.nav-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.nav-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.nav-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .header,
  .footer,
  .back-link {
    display: none;
  }
  
  .content h2 {
    page-break-before: always;
  }
  
  .content h2:first-child {
    page-break-before: avoid;
  }
}

/* Responsive Typography */
@media (max-width: 480px) {
  .content h2 {
    font-size: 20px;
  }
  
  .content h3 {
    font-size: 17px;
  }
  
  .content p,
  .content li {
    font-size: 14px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

