/* ==========================================================================
   Legal pages: Privacy Policy, Cookie Policy, Grievance Redressal
   Shared by privacy-policy.html, cookie-policy.html and grievance-redressal.html.
   ========================================================================== */

.legal-hero-section {
  padding: 60px 0 30px;
  background: radial-gradient(circle at 50% 0%, #F0D3FF 0%, rgba(252, 248, 255, 0) 70%);
  text-align: center;
}
.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(123, 63, 181, 0.1);
  border: 1px solid rgba(123, 63, 181, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.legal-badge-pill span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}
.legal-lead { max-width: 700px; margin: 0 auto; color: #475569; font-size: 15.5px; }
.legal-meta { margin-top: 12px; font-size: 13.5px; color: #64748b; font-weight: 600; }

.legal-content-card {
  background: #ffffff;
  border: 1px solid rgba(8, 30, 41, 0.08);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 30px -5px rgba(8, 30, 41, 0.04);
  margin-bottom: 60px;
  line-height: 1.8;
  color: #334155;
}
.legal-content-card a { color: #6B2FA0; font-weight: 600; }
@media (max-width: 767px) {
  .legal-content-card { padding: 24px 20px; border-radius: 16px; }
}
.legal-section-block {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(8, 30, 41, 0.06);
  scroll-margin-top: 110px;
}
.legal-section-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.legal-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #081e29;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section-title .section-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(123, 63, 181, 0.1);
  color: #7B3FB5;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}
.legal-subtitle { font-size: 16px; font-weight: 700; color: #081e29; margin: 18px 0 6px; }
.legal-list { padding-left: 20px; margin: 14px 0; }
.legal-list li { margin-bottom: 10px; position: relative; }
.legal-highlight-box {
  background: #FCF8FF;
  border-left: 4px solid #7B3FB5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14.5px;
  color: #6B2FA0;
}
.legal-highlight-box p { margin: 0 0 6px; }
.legal-highlight-box ul { margin: 8px 0 0; padding-left: 20px; }
.legal-highlight-box li { margin-bottom: 4px; }
.legal-highlight-box a { color: #55238A; }

/* On-page contents */
.legal-toc { margin: 22px 0 0; padding: 16px 20px; background: #f8fafc; border: 1px solid rgba(8, 30, 41, 0.06); border-radius: 12px; font-size: 14px; line-height: 1.5; }
.legal-toc strong { display: block; margin-bottom: 8px; color: #081e29; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* Contact / officer cards */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.contact-box { background: #f8fafc; border: 1px solid rgba(8, 30, 41, 0.06); border-radius: 12px; padding: 18px; line-height: 1.6; }
.contact-box strong { display: block; color: #081e29; margin-bottom: 6px; font-size: 14px; }
.contact-box a { color: #6B2FA0; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-box a:hover { text-decoration: underline; }
.officer-card { border-top: 4px solid #7B3FB5; background: #ffffff; box-shadow: 0 8px 24px -12px rgba(8, 30, 41, 0.18); }
.officer-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #081e29; }
.officer-card .officer-role { margin: 0 0 10px; font-size: 13.5px; color: #475569; line-height: 1.5; }
.officer-card dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 6px 10px; font-size: 14px; }
.officer-card dt { font-weight: 700; color: #081e29; }
.officer-card dd { margin: 0; word-break: break-word; }

/* Process steps */
.legal-steps { list-style: none; counter-reset: step; margin: 18px 0; padding: 0; }
.legal-steps li { counter-increment: step; position: relative; margin: 0 0 14px; padding: 2px 0 0 52px; min-height: 38px; }
.legal-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #6B2FA0; color: #fff; font-weight: 800; font-size: 15px;
}
.legal-steps strong { display: block; color: #081e29; }

/* Tables (cookies, data collected, rights) */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid #edf2f7; border-radius: 12px; }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14px; line-height: 1.55; }
.cookie-table th { background: #f8fafc; color: #081e29; text-align: left; padding: 12px 14px; border-bottom: 2px solid #e2e8f0; font-weight: 700; }
.cookie-table td { padding: 12px 14px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:hover td { background: #FCF8FF; }
.cookie-table code { font-size: 12.5px; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.badge-essential { display: inline-block; padding: 3px 8px; background: #dcfce7; color: #166534; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.badge-optional { display: inline-block; padding: 3px 8px; background: #F4DFFF; color: #6B2FA0; border-radius: 12px; font-size: 11.5px; font-weight: 700; }

.btn-manage-cookies {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  background: #6B2FA0; color: #ffffff; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; transition: background .2s, transform .2s;
}
.btn-manage-cookies:hover { background: #55238A; transform: translateY(-1px); }
.btn-manage-cookies:focus-visible { outline: 3px solid #0a58ca; outline-offset: 2px; }

/* Request form (grievance page) */
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.request-form .field { display: flex; flex-direction: column; gap: 6px; }
.request-form .field.full { grid-column: 1 / -1; }
.request-form label { font-size: 13.5px; font-weight: 700; color: #081e29; }
.request-form .req { color: #b42318; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-family: inherit; font-size: 16px; color: #081e29;
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px;
}
.request-form textarea { min-height: 130px; resize: vertical; }
.request-form input:focus-visible, .request-form select:focus-visible, .request-form textarea:focus-visible { outline: 3px solid #0a58ca; outline-offset: 1px; border-color: #0a58ca; }
.request-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.request-actions button { flex: 1 1 200px; min-height: 48px; padding: 12px 18px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: #fff; }
.request-actions .btn-email { background: #12303b; border-color: #12303b; }
.request-actions .btn-whatsapp { background: #6B2FA0; border-color: #6B2FA0; }
.request-actions button:hover { filter: brightness(1.12); }
.request-actions button:focus-visible { outline: 3px solid #0a58ca; outline-offset: 2px; }
.request-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.55; color: #475569; }
.request-error { grid-column: 1 / -1; margin: 0; font-size: 13.5px; font-weight: 700; color: #b42318; }
@media (max-width: 640px) { .request-form { grid-template-columns: 1fr; } }

/* Tables on phones: each row becomes a labelled card, so no column is hidden off-screen. */
.cell-label { display: none; }
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; margin: 14px 0; }
  .cookie-table { min-width: 0; display: block; }
  .cookie-table thead { display: none; }
  .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: auto; }
  .cookie-table tr { margin-bottom: 14px; padding: 6px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
  .cookie-table td { padding: 9px 0; border-bottom: 1px dashed #e2e8f0; }
  .cookie-table tr:last-child td { border-bottom: 1px dashed #e2e8f0; }
  .cookie-table td:last-child { border-bottom: 0; }
  .cookie-table tr:hover td { background: none; }
  .cell-label { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
}
