/* Ziqqle legal pages — restyled to match The Tattoo Programme site.
   Only presentation is changed; the legal text is untouched. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900&family=Barlow:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg: #0e0e0e;
  --bg-soft: #161616;
  --card: #1a1a1a;
  --text: #eae7e1;
  --muted: #948f86;
  --line: rgba(248,246,242,0.12);
  --crimson: #8b1a1a;
  --crimson-bright: #a82020;
  --crimson-dim: rgba(139,26,26,0.12);
  --max-width: 820px;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-header {
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--crimson);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--crimson-bright);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: #f8f6f2;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.5px;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

h2 {
  margin: 44px 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  margin: 28px 0 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

p { margin: 0 0 16px; }

strong { color: #f8f6f2; }

ul, ol {
  padding-left: 1.35rem;
  margin: 0 0 18px;
}

li { margin: 8px 0; }

li::marker { color: var(--crimson-bright); }

a {
  color: var(--crimson-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #cf3030; text-decoration-thickness: 2px; }

.legal-meta {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.notice,
.info-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--crimson);
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 24px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--bg-soft);
}

th, td {
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #202020;
  color: #f8f6f2;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

td { color: var(--text); }

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

.legal-footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
}

.legal-footer strong { color: #f8f6f2; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
}

.legal-nav a { color: rgba(248,246,242,0.85); }
.legal-nav a:hover { color: var(--crimson-bright); }

button.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(248,246,242,0.85);
  font: inherit;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

button.inline-link:hover { color: var(--crimson-bright); text-decoration-thickness: 2px; }

code {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: #f8f6f2;
}

@media (max-width: 640px) {
  .legal-shell { width: min(100% - 24px, var(--max-width)); padding: 34px 0 52px; }
  .legal-header { margin-bottom: 26px; padding-bottom: 22px; }
  h2 { margin-top: 36px; }
  .notice, .info-card { padding: 15px 16px; }
  th, td { padding: 12px; }
}
