/* ellaride — brand styles for legal and content pages (privacy/terms/faq). */

body { margin: 0; background: #F8FAFC; color: #171717; font-family: 'DM Sans', system-ui, -apple-system, sans-serif; overflow-x: hidden; }
a { transition: color 160ms ease; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}
.site-header .row {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center;
  text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
.wordmark .ella { color: #0096F7; font-weight: 800; }
.wordmark .ride { color: #171717; font-weight: 400; }

.site-header .back {
  color: #0096F7; background: #e6f4fe; padding: 8px 16px; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: all 160ms ease;
}
.site-header .back:hover { background: #0096F7; color: #ffffff; }

.lang-toggle { display: inline-flex; gap: 3px; background: #f1f5f9; border-radius: 8px; padding: 3px; border: 1px solid #e2e8f0; }
.lang-toggle button {
  border: 0; background: none; cursor: pointer; padding: 4px 10px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 12px; color: #64748b;
  transition: all 160ms ease;
}
.lang-toggle button.active { background: #171717; color: #ffffff; }

/* ---- Page Hero with Wavy Divider ---- */
.legal-hero {
  background: linear-gradient(135deg, #0A1628 0%, #11203A 65%, #0096F7 150%);
  color: #ffffff; padding-top: 56px; padding-bottom: 0; position: relative; overflow: hidden;
}
.legal-hero-inner { max-width: 960px; margin: 0 auto; padding: 0 24px 50px; position: relative; z-index: 2; }
.legal-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(0, 150, 247, 0.2); border: 1px solid rgba(0, 150, 247, 0.4);
  color: #6BB9FF; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 16px;
}
.legal-hero h1 { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; margin: 0; color: #ffffff; line-height: 1.1; }
.legal-hero-sub { margin-top: 14px; color: #94A3B8; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; max-width: 700px; }
.legal-hero-meta { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #cbd5e1; }

.wavy-divider { width: 100%; overflow: hidden; line-height: 0; }
.wavy-divider svg { display: block; width: 100%; height: 46px; }

/* ---- Main Content & Section Cards ---- */
.legal-main-wrap { background: #F8FAFC; padding-top: 20px; padding-bottom: 100px; }
.legal-main { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.legal-section {
  background: #ffffff; border-radius: 20px; padding: 28px 32px; margin-bottom: 20px;
  border: 1px solid #e2e8f0; border-left: 5px solid #0096F7;
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.legal-section:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 150, 247, 0.1); }
.legal-section h2 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 20px; color: #0A1628; letter-spacing: -0.01em; margin: 0 0 12px; }
.legal-section p { font-size: 16px; line-height: 1.7; color: #334155; margin: 0; }

.legal-callout-gdpr {
  margin-top: 40px; border-radius: 24px; padding: 32px 36px;
  background: linear-gradient(135deg, #e6f4fe 0%, #ffffff 100%);
  border: 1px solid #9fd2ff; box-shadow: 0 10px 30px rgba(0,150,247,0.1);
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.legal-callout-gdpr h3 { margin: 0; font-weight: 700; font-size: 20px; color: #0A1628; }
.legal-callout-gdpr p { margin: 8px 0 0; color: #475569; font-size: 15px; line-height: 1.6; }
.legal-callout-btn {
  background: #0096F7; color: #ffffff; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,150,247,0.3);
  transition: background 160ms; display: inline-block; flex-shrink: 0;
}
.legal-callout-btn:hover { background: #0080d4; color: #ffffff; }

.legal-callout-terms {
  margin-top: 40px; border-radius: 24px; padding: 32px 36px;
  background: linear-gradient(135deg, #0A1628 0%, #1a2c49 100%); color: #ffffff;
  border: 1px solid #1e293b; box-shadow: 0 14px 40px rgba(10,22,40,0.25);
}
.legal-callout-terms h3 { margin: 0; font-weight: 700; font-size: 22px; color: #ffffff; }
.legal-callout-terms p { margin: 10px 0 0; color: #94A3B8; font-size: 15.5px; line-height: 1.65; }

/* ---- FAQ ---- */
.faq-search-wrap { position: relative; margin-bottom: 20px; }
.faq-search-wrap input {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 18px 0 46px;
  border: 1px solid #cbd5e1; border-radius: 14px; background: #ffffff;
  font-family: 'DM Sans', sans-serif; font-size: 16px; color: #1e293b; outline: none;
  transition: border-color 160ms;
}
.faq-search-wrap input:focus { border-color: #0096F7; }
.faq-search-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 18px; pointer-events: none; }
.faq-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.faq-chips button {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e2e8f0; background: #ffffff; color: #334155;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500; transition: all 160ms;
}
.faq-chips button.active { border-color: #0096F7; background: #0096F7; color: #ffffff; font-weight: 600; }
.faq-item { border-radius: 16px; background: #ffffff; border: 1px solid #e2e8f0; margin-bottom: 10px; transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; }
.faq-item.open { border-color: #0096F7; box-shadow: 0 8px 24px rgba(0,150,247,0.08); }
.faq-item button.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 20px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16.5px; color: #171717; outline: none;
}
.faq-item .plus {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: #e6f4fe; color: #0096F7;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1); font-size: 20px; line-height: 1; font-weight: 400;
}
.faq-item.open .plus { background: #0096F7; color: #ffffff; transform: rotate(45deg); }
.faq-item .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }
.faq-item .faq-a-inner { overflow: hidden; }
.faq-item .faq-a p { margin: 0; padding: 0 20px 20px; font-size: 15.5px; line-height: 1.65; color: #4b5563; max-width: 760px; border-top: 1px solid #f1f5f9; padding-top: 12px; }
.faq-empty { padding: 40px 20px; text-align: center; color: #64748b; font-size: 15px; }
.faq-contact { margin-top: 48px; padding: 30px 36px; background: #ffffff; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.04); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.faq-contact p { margin: 0; font-size: 16px; color: #1e293b; }
.faq-contact a { color: #0096F7; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: #ffffff; border-top: 1px solid #e2e8f0; padding: 64px 0 36px; color: #171717; }
.site-footer .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; color: #171717; text-transform: uppercase; margin: 0; }
.footer-grid ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { color: #64748b; font-size: 14.5px; text-decoration: none; transition: color 160ms; }
.footer-grid ul a:hover { color: #171717; }
.footer-tagline { margin: 16px 0 0; max-width: 280px; font-size: 14px; line-height: 1.6; color: #64748b; }
.footer-email { display: inline-block; margin-top: 14px; color: #0096F7; font-size: 14.5px; font-family: 'DM Sans', sans-serif; font-weight: 600; text-decoration: none; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: #f1f5f9; border: 1px solid #e2e8f0;
  color: #171717; transition: all 160ms ease;
}
.footer-social a:hover { background: #0096F7; color: #ffffff; border-color: #0096F7; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: 640px; font-size: 12.5px; line-height: 1.6; color: #94a3b8; }
.footer-bottom span { font-size: 12.5px; color: #94a3b8; }
