/* ══════════════════════════════════════════════
   POLICY PAGES — Shared layout, nav, typography,
   site-wide footer
   ══════════════════════════════════════════════ */

/* ── Page wrapper ── */
.policy-page {
  min-height: 100vh;
  background: #F9FAFB;
  display: flex;
  flex-direction: column;
}

/* ── Navigation (light mode) ── */
.policy-nav {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
}

.policy-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.policy-nav-logo-icon {
  width: 36px;
  height: 36px;
  background: #4F46E5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-nav-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.policy-nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #4F46E5;
  letter-spacing: -0.3px;
}

.policy-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.policy-nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.2s;
}

.policy-nav-link:hover {
  color: #111827;
  background: #F3F4F6;
}

.policy-nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: #4F46E5;
  color: white !important;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 8px;
}

.policy-nav-cta:hover {
  background: #3730A3;
}

/* ── Content wrapper ── */
.policy-content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Page header ── */
.policy-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid #E5E7EB;
}

.policy-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.policy-last-updated {
  font-size: 13px;
  color: #6B7280;
  background: #F3F4F6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #E5E7EB;
}

/* ── Section headings ── */
.policy-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  padding-left: 14px;
  border-left: 3px solid #4F46E5;
  line-height: 1.3;
}

.policy-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ── Text ── */
.policy-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 14px;
}

.policy-content ul,
.policy-content ol {
  margin: 8px 0 16px 22px;
}

.policy-content li {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 6px;
}

.policy-content strong {
  font-weight: 700;
  color: #111827;
}

.policy-content a {
  color: #4F46E5;
  font-weight: 500;
}

.policy-content a:hover {
  color: #3730A3;
}

/* ── Notice box (yellow) ── */
.policy-notice {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.policy-notice p {
  margin: 0;
  color: #92400E;
  font-size: 14px;
  line-height: 1.7;
}

.policy-notice strong {
  color: #78350F;
}

/* ── Contact block (indigo) ── */
.policy-contact-block {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
}

.policy-contact-block p {
  margin: 0 0 6px;
  color: #3730A3;
  font-size: 14px;
  line-height: 1.7;
}

.policy-contact-block p:last-child { margin-bottom: 0; }

.policy-contact-block a {
  color: #4F46E5;
  font-weight: 600;
}

/* ── Section divider ── */
.policy-divider {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 0;
}

/* ══════════════════════════════════════════════
   PRIVACY REQUEST PAGE
   ══════════════════════════════════════════════ */
.pr-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.pr-info-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pr-info-card .pr-info-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.pr-info-card .pr-info-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.pr-info-card .pr-info-value {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

.pr-form-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-top: 8px;
}

.pr-form-card h2 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
  font-size: 18px;
  margin-bottom: 24px;
}

.pr-field {
  margin-bottom: 20px;
}

.pr-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.pr-label span {
  color: #EF4444;
  margin-left: 2px;
}

.pr-note {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 400;
  margin-left: 6px;
}

.pr-input,
.pr-select,
.pr-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pr-input:focus,
.pr-select:focus,
.pr-textarea:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pr-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.pr-submit-btn {
  width: 100%;
  padding: 13px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.pr-submit-btn:hover { background: #3730A3; }
.pr-submit-btn:disabled { background: #A5B4FC; cursor: not-allowed; }

.pr-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  margin-top: 24px;
}

.pr-success.show { display: block; }

.pr-success-icon {
  width: 64px;
  height: 64px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
}

.pr-success h3 {
  font-size: 20px;
  color: #065F46;
  margin-bottom: 12px;
}

.pr-success p {
  font-size: 14px;
  color: #047857;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   FAQ PAGE (accordion)
   ══════════════════════════════════════════════ */
.faq-policy-hero {
  text-align: center;
  padding: 48px 0 32px;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 40px;
}

.faq-policy-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.faq-policy-hero p {
  font-size: 16px;
  color: #6B7280;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.faq-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin: 32px 0 12px;
}

.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: #C7D2FE;
  box-shadow: 0 2px 8px rgba(79,70,229,0.06);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  font-family: inherit;
  text-align: left;
  gap: 16px;
  transition: background 0.15s;
}

.faq-question-btn:hover { background: #F9FAFB; }

.faq-item.open .faq-question-btn {
  color: #4F46E5;
  border-left: 3px solid #4F46E5;
  padding-left: 17px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 20px 20px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.faq-answer-inner p { margin-bottom: 12px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

.faq-answer-inner a {
  color: #4F46E5;
  font-weight: 500;
}

.faq-still-need {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.faq-still-need h3 {
  font-size: 18px;
  font-weight: 700;
  color: #3730A3;
  margin-bottom: 8px;
}

.faq-still-need p {
  font-size: 14px;
  color: #4F46E5;
  margin-bottom: 18px;
}

.faq-still-need a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #4F46E5;
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.faq-still-need a:hover { background: #3730A3; color: white; }

/* ══════════════════════════════════════════════
   SITE-WIDE FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  padding: 48px 0 24px;
  margin-top: auto;
}

/* For non-flex pages, just ensure footer gets pushed down */
body:not(.policy-page):not(.chat-layout-body) .site-footer {
  margin-top: 0;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.site-footer-logo-icon {
  width: 32px;
  height: 32px;
  background: #4F46E5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.site-footer-brand p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.65;
  max-width: 320px;
  margin: 0;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.site-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer-col a {
  display: block;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.site-footer-col a:hover { color: #4F46E5; }

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  font-size: 13px;
  color: #6B7280;
}

.site-footer-bottom a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-bottom a:hover { color: #4F46E5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .policy-nav-links .policy-nav-link { display: none; }

  .policy-content {
    padding: 28px 16px 60px;
  }

  .policy-header h1 {
    font-size: 24px;
  }

  .policy-content h2 {
    font-size: 17px;
  }

  .pr-info-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pr-form-card {
    padding: 20px 18px;
  }

  .faq-policy-hero h1 {
    font-size: 24px;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer-cols {
    grid-template-columns: 1fr;
  }
}
