/**
 * Privacy Policy Page Stylesheet
 *
 * Styles for the Privacy Policy Page.
 * Extends components.css using compact one-line formatting and linear cascade rules.
 *
 * @package Dimidium_Theme
 */

/* ── 1. PRIVACY POLICY TOKENS & BASE SCOPE ── */
:root { --legal-bg: var(--brand-white); --legal-text: var(--slate-800); --legal-accent: var(--brand-orange); --legal-accent-glow: var(--brand-orange-glow, rgba(230, 140, 16, 0.15)); --legal-dark-bg: var(--brand-blue-dark); --legal-cream: var(--brand-cream); --legal-radius-lg: var(--radius-lg, 16px); --legal-radius-pill: var(--radius-pill, 100px); --legal-transition: var(--transition-fast); }

.legal-page { font-family: var(--ff-sans, 'Poppins', sans-serif); color: var(--brand-grey-dk); background-color: var(--brand-white); overflow-x: hidden; }

/* ── 2. HERO SECTION ── */
.legal-hero { position: relative; width: 100%; background-color: var(--legal-dark-bg); color: var(--brand-white); padding: 56px 0 44px 0; overflow: hidden; }
.legal-hero__container { position: relative; z-index: 2; text-align: center; max-width: var(--max-w, 1280px); margin: 0 auto; padding: 0 var(--pad-x, 24px); box-sizing: border-box; }
.legal-hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: rgba(230, 140, 16, 0.12); border: 1px solid rgba(230, 140, 16, 0.3); border-radius: var(--legal-radius-pill); font-family: var(--ff-sans, 'Poppins', sans-serif); font-weight: 600; font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.08em; color: var(--legal-accent); margin-bottom: 16px; }
.legal-hero__title { font-family: var(--ff-sans, 'Poppins', sans-serif); font-weight: 700; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -0.02em; color: var(--brand-white); margin: 0 0 12px 0; }
.legal-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 14px; color: var(--brand-grey-lt); margin-bottom: 24px; }
.legal-hero__company { font-weight: 600; color: var(--brand-white); }
.legal-hero__divider { opacity: 0.4; }
.legal-hero__updated { color: rgba(255, 255, 255, 0.75); }

/* ── 3. INTERACTIVE SEARCH & NAVIGATION PILLS ── */
.legal-hero__search-wrap { position: relative; max-width: 580px; margin: 0 auto 24px auto; }
.legal-hero__search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.5); pointer-events: none; transition: color var(--legal-transition); }
.legal-hero__search-input { width: 100%; padding: 14px 44px 14px 46px; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 100px; font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 14px; color: var(--brand-white); outline: none; box-sizing: border-box; transition: background var(--legal-transition), border-color var(--legal-transition), box-shadow var(--legal-transition); }
.legal-hero__search-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.legal-hero__search-input:focus { background: rgba(255, 255, 255, 0.14); border-color: var(--legal-accent); box-shadow: 0 0 0 4px var(--legal-accent-glow); }
.legal-hero__search-wrap:focus-within .legal-hero__search-icon { color: var(--legal-accent); }
.legal-hero__search-clear { display: none; align-items: center; justify-content: center; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: none; color: var(--brand-white); font-size: 16px; cursor: pointer; padding: 0; transition: background var(--legal-transition); }
.legal-hero__search-clear:hover { background: var(--legal-accent); }

.legal-hero__nav-pills { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.legal-hero__nav-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 100px; font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: all var(--legal-transition); white-space: nowrap; }
.legal-hero__nav-pill .pill-num { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(230, 140, 16, 0.2); color: var(--legal-accent); font-size: 10px; font-weight: 700; }
.legal-hero__nav-pill:hover, .legal-hero__nav-pill.active { background: rgba(230, 140, 16, 0.2); border-color: var(--legal-accent); color: var(--brand-white); transform: translateY(-2px); }

/* ── 4. TOOLBAR CONTROLS BAR ── */
.legal-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0 4px; }
.legal-toolbar__count { font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 13.5px; font-weight: 600; color: #64748B; }
.legal-toolbar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--brand-white); border: 1px solid var(--brand-grey-lt); border-radius: 8px; font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 12.5px; font-weight: 600; color: var(--brand-blue-dark); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); transition: all var(--legal-transition); }
.legal-toolbar__btn:hover { border-color: var(--legal-accent); color: var(--legal-accent); }

/* ── 5. MAIN CONTENT SECTION & WIDE 1200px CARDS ── */
.legal-content { background-color: var(--brand-white); padding: 40px 0 72px 0; color: var(--brand-grey-dk); }
.legal-content__container { max-width: var(--max-w, 1200px); width: 100%; margin: 0 auto; padding: 0 var(--pad-x, 24px); box-sizing: border-box; }
.legal-intro-card { background: var(--brand-white); border: 1px solid var(--brand-grey-lt); border-radius: var(--legal-radius-lg); padding: 28px 36px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); max-width: 1200px; width: 100%; box-sizing: border-box; }
.legal-intro-card p { font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 15px; line-height: 1.75; color: var(--brand-grey-dk); margin: 0; }
.legal-intro-card p + p { margin-top: 14px; }

.legal-sections { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.legal-section-card { background: var(--brand-white); border: 1px solid var(--brand-grey-lt); border-radius: var(--legal-card-radius); padding: 28px 36px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02); max-width: 1200px; width: 100%; box-sizing: border-box; transition: border-color var(--legal-transition), box-shadow var(--legal-transition), transform var(--legal-transition); }
.legal-section-card:hover { border-color: rgba(230, 140, 16, 0.4); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); }

.legal-section-card__title { font-family: var(--ff-sans, 'Poppins', sans-serif); font-weight: 700; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--brand-blue-med); margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; }
.legal-section-card__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(230, 140, 16, 0.12); color: var(--legal-accent); font-size: 13px; font-weight: 700; flex-shrink: 0; }

.legal-section-card__chevron { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.04); border: none; color: #64748B; cursor: pointer; margin-left: auto; flex-shrink: 0; transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease; }
.legal-section-card__title:hover .legal-section-card__chevron { background: rgba(230, 140, 16, 0.15); color: var(--legal-accent); }
.legal-section-card.is-collapsed .legal-section-card__chevron { transform: rotate(-90deg); }

.legal-section-card__body { font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 15px; line-height: 1.75; color: #4A5158; width: 100%; margin-top: 16px; transition: all 0.25s ease; }
.legal-section-card.is-collapsed .legal-section-card__body { display: none; }
.legal-section-card__body p { margin: 0; }
.legal-section-card__body p + p { margin-top: 14px; }
.legal-section-card__body ul { margin: 12px 0 0 0; padding-left: 20px; }
.legal-section-card__body li { margin-bottom: 6px; }
.legal-section-card__body a { color: var(--legal-accent); text-decoration: underline; font-weight: 500; }
.legal-section-card__body a:hover { color: #B06804; }

/* ── 6. CONTACT BOX & FOOTER NOTE ── */
.legal-contact-box { background: var(--brand-blue-dark); color: var(--brand-white); border-radius: var(--radius-md, 12px); padding: 20px 24px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.legal-contact-box__item { font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 14px; line-height: 1.5; color: var(--brand-grey-lt); }
.legal-contact-box__item b { color: var(--brand-white); font-weight: 600; }
.legal-contact-box__item a { color: var(--legal-accent); text-decoration: none; font-weight: 600; }
.legal-contact-box__item a:hover { text-decoration: underline; }

.legal-footer-note { text-align: center; margin-top: 36px; font-family: var(--ff-sans, 'Poppins', sans-serif); font-size: 14px; line-height: 1.6; color: #6C737B; }

/* ── 7. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 640px) {
  .legal-hero { padding: 40px 0 32px 0; }
  .legal-hero__search-wrap { margin-bottom: 16px; }
  .legal-content { padding: 28px 0 60px 0; }
  .legal-intro-card, .legal-section-card { padding: 20px 18px; }
  .legal-section-card__title { font-size: 16.5px; }
  .legal-section-card__body { font-size: 14px; }
}
