/* ═══════════════════════════════════════════════════════════
   YiYo — Legal Pages Shared Styles
   Colors matched to Flutter app: AppColors
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #1e3a5f;
  --primary-light: #2B5A8F;
  --accent: #f28f3e;
  --background: #fcf9f3;
  --surface: #ffffff;
  --text-primary: #1e3a5f;
  --text-secondary: #5C7A9D;
  --text-light: #8B9DB8;
  --divider: #E5E5E5;
  --success: #72bb67;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ──────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── Header ────────────────────────────────────────────── */
.legal-header {
  text-align: center;
  margin-bottom: 40px;
}

.legal-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
}

.legal-header .brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.legal-header .brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.legal-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.legal-header .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-header .update-date {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: rgba(30, 58, 95, 0.06);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Info banner ───────────────────────────────────────── */
.info-banner {
  background: linear-gradient(135deg, rgba(30,58,95,0.05), rgba(30,58,95,0.09));
  border: 1px solid rgba(30, 58, 95, 0.10);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-banner .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(242, 143, 62, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.info-banner p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
}

/* ── Contact card ──────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.contact-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.contact-card .row:last-child {
  margin-bottom: 0;
}

.contact-card .row .icon {
  font-size: 16px;
}

.contact-card .row span {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-card .row a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.contact-card .row a:hover {
  text-decoration: underline;
}

/* ── Section ───────────────────────────────────────────── */
.legal-section {
  background: var(--surface);
  border: 1px solid rgba(229, 229, 229, 0.6);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.legal-section:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06);
}

.legal-section .section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

.legal-section ul li strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Footer ────────────────────────────────────────────── */
.legal-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

.legal-footer p {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.legal-footer .copyright {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .legal-page {
    padding: 24px 16px 40px;
  }

  .legal-header h1 {
    font-size: 22px;
  }

  .legal-section {
    padding: 20px 18px;
  }

  .legal-section h2 {
    font-size: 16px;
  }
}
