/* Night City skin for text-heavy legal pages: privacy policies, terms of service, data-deletion requests.
   Readability first: body text stays a soft neutral on near-black; accents are limited to headings, links and rules.
   The policies are generated HTML with inline styles and !important colours, so they are overridden with !important
   and scoped to [data-custom-class]. */

/* ---- data deletion pages (inline <style> in the templates) ---- */
html[data-theme="night"] body { font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif; background-color: var(--nc-bg); color: var(--nc-ink); }
html[data-theme="night"] .container {
  position: relative; background: linear-gradient(180deg, var(--nc-surface-2), var(--nc-surface) 40%);
  border: 1px solid var(--nc-line); border-radius: 0; box-shadow: none; padding: 2rem;
}
html[data-theme="night"] .container::after { content: ""; position: absolute; inset: 6px; pointer-events: none; background: var(--nc-brackets); }
html[data-theme="night"] .container h1 {
  font-family: var(--nc-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--nc-ink);
}
html[data-theme="night"] .container p { color: var(--nc-ink-2); line-height: 1.65; }
html[data-theme="night"] .email-link {
  font-family: var(--nc-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  background: var(--nc-amber); color: #140b02; border-radius: 0; clip-path: var(--nc-notch); padding: 0.8rem 1.2rem;
}
html[data-theme="night"] .email-link:hover { background: #ffb766; color: #140b02; }
html[data-theme="night"] .container img { border-radius: 0; filter: brightness(0.8) saturate(0.9); border: 1px solid var(--nc-line); }
html[data-theme="night"] .footer { color: var(--nc-ink-3); }

/* ---- generated policies ---- */
html[data-theme="night"] [data-custom-class='body'] {
  max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem 4rem;
}
html[data-theme="night"] [data-custom-class='body'],
html[data-theme="night"] [data-custom-class='body'] * {
  background: transparent !important;
  color: var(--nc-ink-2) !important;
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif !important;
  line-height: 1.7 !important;
}
html[data-theme="night"] [data-custom-class='title'],
html[data-theme="night"] [data-custom-class='title'] * {
  font-family: var(--nc-display) !important; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important; color: var(--nc-ink) !important; line-height: 1.15 !important;
}
html[data-theme="night"] [data-custom-class='subtitle'],
html[data-theme="night"] [data-custom-class='subtitle'] * {
  font-family: var(--nc-mono) !important; font-size: 0.78rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nc-ink-3) !important;
}
html[data-theme="night"] [data-custom-class='heading_1'],
html[data-theme="night"] [data-custom-class='heading_1'] * {
  font-family: var(--nc-display) !important; font-size: 1.3rem !important; letter-spacing: 0.03em; color: var(--nc-ink) !important;
}
html[data-theme="night"] [data-custom-class='heading_1'] { border-bottom: 1px solid var(--nc-line); padding-bottom: 0.5rem; margin-top: 2.2rem; }
html[data-theme="night"] [data-custom-class='heading_2'],
html[data-theme="night"] [data-custom-class='heading_2'] * {
  font-family: var(--nc-display) !important; font-size: 1.1rem !important; color: var(--nc-ink) !important;
}
html[data-theme="night"] [data-custom-class='body_text'],
html[data-theme="night"] [data-custom-class='body_text'] * { font-size: 1rem !important; }
html[data-theme="night"] [data-custom-class='link'],
html[data-theme="night"] [data-custom-class='link'] *,
html[data-theme="night"] [data-custom-class='body'] a,
html[data-theme="night"] [data-custom-class='body'] a * { color: var(--nc-teal) !important; word-break: break-word; }
html[data-theme="night"] [data-custom-class='body'] a:hover,
html[data-theme="night"] [data-custom-class='body'] a:hover * { color: var(--nc-amber) !important; }
html[data-theme="night"] [data-custom-class='body'] strong,
html[data-theme="night"] [data-custom-class='body'] strong * { color: var(--nc-ink) !important; }
html[data-theme="night"] [data-custom-class='body'] table { border-collapse: collapse; width: 100%; }
html[data-theme="night"] [data-custom-class='body'] td,
html[data-theme="night"] [data-custom-class='body'] th { border-color: var(--nc-line) !important; }
html[data-theme="night"] [data-custom-class='body'] hr { border-color: var(--nc-line) !important; }
/* the generated markup uses black borders/rules inline */
html[data-theme="night"] [data-custom-class='body'] [style*="border"] { border-color: var(--nc-line) !important; }
