/* Easy Spanish - Terms & Policy Pages */
/* Color sync with app_colors.dart */

:root {
  --primary: #C60B1E;
  --primary-light: #E8384F;
  --secondary: #FFC400;
  --background: #FFFBF5;
  --surface: #FFFFFF;
  --text-primary: #1C1B1F;
  --text-secondary: #79747E;
  --border: #E0E0E0;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #E8384F;
    --primary-light: #FF6B7A;
    --secondary: #FFD54F;
    --background: #121212;
    --surface: #1E1E1E;
    --text-primary: #E6E1E5;
    --text-secondary: #938F99;
    --border: #333333;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-btn:hover {
  border-color: var(--primary);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  min-width: 160px;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--primary);
  color: #fff;
}

.lang-option.active {
  font-weight: 600;
  color: var(--primary);
}

.lang-option.active:hover {
  color: #fff;
}

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Typography */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.effective-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

p {
  margin-bottom: 12px;
  color: var(--text-primary);
}

ul, ol {
  margin: 8px 0 16px 20px;
}

li {
  margin-bottom: 6px;
  color: var(--text-primary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Info Cards */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-info {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.contact-info p {
  margin-bottom: 4px;
  font-size: 14px;
}

.contact-info a {
  font-weight: 600;
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
}

.faq-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

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

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 16px 16px;
  }

  header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  h2 {
    font-size: 1.3rem;
  }
}
