/* ============================================================
   policy.css — Shared stylesheet for DigiBlock by DigitalRates
   Covers: Privacy Policy, Cookie Policy, Terms of Use
   Last Updated: 26-Mar-2026
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --bg:      #f5f7fb;
  --surface: #ffffff;
  --text:    #111827;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --accent:  #0f172a;
  --link:    #2563eb;
  --shadow:  0 12px 40px rgba(0, 0, 0, 0.06);
  --radius:  16px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* ── Skip link (accessibility) ────────────────────────────── */
.skip-link {
  position:   absolute;
  top:        -999px;
  left:       16px;
  z-index:    9999;
  padding:    8px 16px;
  background: var(--accent);
  color:      #fff;
  font-size:  0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ── Site nav ─────────────────────────────────────────────── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.site-nav__inner {
  display:         flex;
  align-items:     center;
  gap:             8px;
  width:           min(880px, 100%);
  margin:          0 auto;
  height:          52px;
  flex-wrap:       wrap;
}

.site-nav__brand {
  font-weight: 700;
  font-size:   1rem;
  color:       var(--accent);
  text-decoration: none;
  margin-right: 16px;
  letter-spacing: -0.01em;
}

.site-nav__link {
  font-size:   0.875rem;
  font-weight: 500;
  color:       var(--muted);
  text-decoration: none;
  padding:     6px 10px;
  border-radius: 6px;
  transition:  background 0.15s, color 0.15s;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: var(--bg);
  color:      var(--accent);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(880px, calc(100% - 32px));
  margin: 48px auto 64px;
}

.policy-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:    var(--shadow);
  padding:       48px;
}

/* ── Page header ──────────────────────────────────────────── */
.policy-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-title {
  margin:        0 0 12px;
  font-size:     clamp(2rem, 4vw, 2.6rem);
  font-weight:   800;
  letter-spacing: -0.025em;
  color:         var(--accent);
  line-height:   1.15;
}

.policy-meta {
  display:    flex;
  flex-wrap:  wrap;
  gap:        12px;
  margin:     0;
  padding:    0;
  list-style: none;
}

.policy-meta__item {
  font-size:   0.875rem;
  color:       var(--muted);
  font-weight: 500;
}

.policy-meta__item::before {
  content:      "• ";
  color:        var(--border);
  margin-right: 4px;
}

.policy-meta__item:first-child::before {
  content: none;
}

/* ── Lead paragraph ───────────────────────────────────────── */
.lead {
  font-size: 1.075rem;
  color:     #374151;
  margin:    0 0 24px;
}

/* ── Sections ─────────────────────────────────────────────── */
.policy-section {
  margin-bottom: 36px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

/* ── Typography ───────────────────────────────────────────── */
.policy-h2 {
  font-size:     1.3rem;
  font-weight:   700;
  color:         var(--accent);
  margin:        0 0 10px;
  letter-spacing: -0.01em;
}

.policy-h3 {
  font-size:   1.05rem;
  font-weight: 600;
  color:       var(--accent);
  margin:      0 0 8px;
}

.policy-p {
  margin:    0 0 16px;
  font-size: 1rem;
  color:     var(--text);
}

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

/* ── Lists ────────────────────────────────────────────────── */
.policy-ol,
.policy-ul {
  margin:       0 0 1.25rem;
  padding-left: 1.5rem;
}

.policy-ol { list-style-type: decimal; }
.policy-ul { list-style-type: disc; }

.policy-ol li,
.policy-ul li {
  padding-left:  0.2rem;
  margin-bottom: 0.75rem;
}

/* Nested */
.policy-ol ol,
.policy-ol ul,
.policy-ul ol,
.policy-ul ul {
  margin-top:    0.6rem;
  margin-bottom: 0.6rem;
  padding-left:  1.4rem;
}

.policy-ol ol { list-style-type: lower-alpha; }
.policy-ol ol ol { list-style-type: lower-roman; }
.policy-ul ul { list-style-type: circle; }
.policy-ul ul ul { list-style-type: square; }

/* Markers */
.policy-ol > li::marker {
  font-weight: 700;
  color:       var(--accent);
}

.policy-ul > li::marker {
  color: var(--accent);
}

/* ── Company / contact details block ──────────────────────── */
.company-details {
  margin:        20px 0 28px;
  padding:       18px 20px;
  background:    #f9fafb;
  border:        1px solid var(--border);
  border-left:   4px solid var(--link);
  border-radius: 12px;
  font-size:     0.95rem;
  font-style:    normal;
  line-height:   1.8;
}

.company-details strong {
  display:       block;
  margin-bottom: 6px;
  font-size:     1rem;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color:           var(--link);
  text-decoration: none;
  font-weight:     500;
  word-break:      break-word;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline:        2px solid var(--link);
  outline-offset: 3px;
  border-radius:  3px;
}

/* ── Footer ───────────────────────────────────────────────── */
.policy-footer {
  margin-top:  40px;
  padding-top: 20px;
  border-top:  1px solid var(--border);
  font-size:   0.875rem;
  color:       var(--muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .container {
    margin: 24px auto 40px;
  }

  .policy-card {
    padding: 24px 18px;
  }

  .policy-title {
    font-size: 1.75rem;
  }

  .site-nav__inner {
    height: auto;
    padding: 10px 0;
  }
}
