/* ═══════════════════════════════════════════════════════════════
   Fadhakir Privacy — design tokens mirror the app's _Group +
   _SectionTitle pattern from settings_screen.dart.
   No corner glows. Clean white cards on cool-gray canvas.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --canvas: #F2F3F4;
  --surface: #FFFFFF;

  --gold-base: #D0993F;
  --gold-dark: #B07F28;

  --text-primary: #1A1D1F;
  --text-secondary: #4A4F52;
  --text-tertiary: #7F857F;

  --cta-bg: #0C0D0F;
  --cta-text: #FFFFFF;

  --divider: #E6E8EB;
  --border-subtle: #EEF0F2;

  /* matches _Group BoxShadow exactly */
  --shadow-card: 0 1px 4px rgba(16, 24, 40, 0.04);
  /* matches Divider color inside _Group (0x0F101828) */
  --row-divider: rgba(16, 24, 40, 0.058);

  --r-card: 16px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  line-height: 1.85;
  font-size: 15px;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   App bar — mirrors AppNavBar: title + subtitle stacked, lang
   toggle on the opposite side. Sticky with subtle backdrop blur.
   ═══════════════════════════════════════════════════════════════ */

.app-bar {
  background: rgba(242, 243, 244, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-block {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.title-block .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.title-block .subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.lang-toggle {
  background: var(--cta-bg);
  border: none;
  color: var(--cta-text);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.1s ease;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.lang-toggle:hover {
  opacity: 0.85;
}

.lang-toggle:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════
   Main
   ═══════════════════════════════════════════════════════════════ */

main {
  flex: 1;
  padding: 24px 0 48px;
}

.page-header {
  margin-bottom: 24px;
  padding: 0 4px;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 6px;
}

html[dir="rtl"] .page-title {
  font-size: 28px;
}

.last-updated {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.lead {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 18px 4px 28px;
  line-height: 1.85;
}

html[dir="rtl"] .lead {
  font-size: 16px;
  line-height: 1.95;
}

/* ═══════════════════════════════════════════════════════════════
   Section title — mirrors _SectionTitle: 11px, weight 600,
   tertiary color, letter-spacing 0.4.
   ═══════════════════════════════════════════════════════════════ */

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.4px;
  margin: 22px 4px 8px;
  text-transform: none;
}

html[dir="rtl"] .section-title {
  font-size: 11.5px;
}

/* ═══════════════════════════════════════════════════════════════
   Card — mirrors _Group: white surface, radius 16, shadow exactly
   (0, 1, 4) at alpha 0.04, rows separated by 1px divider.
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card + .section-title {
  margin-top: 24px;
}

.row {
  padding: 16px 18px;
}

.row + .row {
  border-top: 1px solid var(--row-divider);
}

.row p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

html[dir="rtl"] .row p {
  font-size: 15.5px;
  line-height: 1.9;
}

.row p + p {
  margin-top: 10px;
}

.row ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.row ul li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0;
  margin: 0;
  position: relative;
  padding-inline-start: 14px;
}

html[dir="rtl"] .row ul li {
  font-size: 15.5px;
  line-height: 1.9;
}

.row ul li + li {
  margin-top: 8px;
}

.row ul li::before {
  content: "·";
  position: absolute;
  inset-inline-start: 4px;
  color: var(--text-tertiary);
  font-weight: 700;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-base);
}

/* Contact card variant — single-row card with email */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.contact-card .label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.contact-card a {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

html[dir="rtl"] .contact-card .label {
  font-size: 14px;
}

html[dir="rtl"] .contact-card a {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  padding: 24px 0 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

html[dir="rtl"] .site-footer {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  .app-bar {
    padding: 12px 0;
  }
  .title-block .title {
    font-size: 16px;
  }
  .title-block .subtitle {
    font-size: 11px;
  }
  .lang-toggle {
    padding: 7px 14px;
    font-size: 12px;
  }
  main {
    padding: 18px 0 36px;
  }
  .page-title {
    font-size: 22px;
  }
  html[dir="rtl"] .page-title {
    font-size: 24px;
  }
  .lead {
    font-size: 14px;
    margin: 14px 2px 22px;
  }
  html[dir="rtl"] .lead {
    font-size: 15px;
  }
  .row {
    padding: 14px 16px;
  }
  .row p, .row ul li {
    font-size: 13.5px;
  }
  html[dir="rtl"] .row p,
  html[dir="rtl"] .row ul li {
    font-size: 14.5px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Print
   ═══════════════════════════════════════════════════════════════ */

@media print {
  .app-bar, .site-footer, .lang-toggle {
    display: none;
  }
  body {
    background: white;
  }
  main {
    padding: 0;
  }
  .card, .contact-card {
    box-shadow: none;
    border: 1px solid var(--divider);
  }
}
