/* ApniRide legal pages — minimal, readable, on-brand. */

:root {
  --bg: #F4F4EE;
  --surface: #FFFFFF;
  --surface-alt: #EDEDE6;
  --border: #E6E6DF;
  --text: #0A0A0A;
  --text-muted: #6B6B6B;
  --text-dim: #A3A39B;
  --primary: #E2F549;
  --primary-dark: #C7DA2E;
  --max-width: 720px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Header ──────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--text);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.eyebrow {
  display: inline-block;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 12px 0 8px;
  line-height: 1.15;
}

.last-updated {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Body content ────────────────────────────────────────────── */

main h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 56px 0 16px;
  line-height: 1.25;
}

main h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
}

main p {
  margin: 0 0 16px;
}

main ul,
main ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

main li {
  margin-bottom: 8px;
}

main a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

main a:hover {
  color: var(--primary-dark);
}

main strong {
  font-weight: 700;
}

/* Inline code-ish (for things like NSPhotoLibraryUsageDescription) */
main code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* Section emphasised legal disclaimers */
main .uppercase-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
}

/* Tables — for processor lists */
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

main th,
main td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

main th {
  background: var(--surface-alt);
  font-weight: 700;
}

main tr:last-child td {
  border-bottom: 0;
}

/* ── Index page cards ────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--text);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.card-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card-arrow {
  color: var(--text-dim);
  font-size: 22px;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .container {
    padding: 32px 20px 64px;
  }
  h1 {
    font-size: 32px;
  }
  main h2 {
    font-size: 20px;
    margin-top: 40px;
  }
  main table {
    display: block;
    overflow-x: auto;
  }
}
