:root {
  --navy: #07111d;
  --surface: #0b1623;
  --surface-raised: #111e2c;
  --ivory: #f7f1e7;
  --text-soft: #c8d1dc;
  --muted: #aab6c5;
  --copper: #d99058;
  --copper-bright: #f0ad75;
  --line: rgba(247, 241, 231, 0.14);
  --line-accent: rgba(217, 144, 88, 0.38);
}

* { box-sizing: border-box; scrollbar-color: #46576a var(--navy); }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    linear-gradient(105deg, rgba(5, 13, 23, 0.98), rgba(7, 17, 29, 0.9) 58%, rgba(7, 17, 29, 0.82)),
    url("scenic-chess-terrace.webp") center top / cover fixed no-repeat,
    var(--navy);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--navy); background: var(--copper-bright); }

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

a:hover { color: #ffd0aa; }

:focus-visible {
  outline: 3px solid var(--copper-bright);
  outline-offset: 3px;
}

.legal-header {
  min-height: 70px;
  padding: 0 max(20px, calc((100vw - 920px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(7, 17, 29, 0.86);
  border-bottom: 1px solid var(--line-accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.12);
}

.legal-brand {
  color: var(--ivory);
  font-weight: 900;
  text-decoration: none;
}

.legal-brand span { color: var(--copper-bright); }

.legal-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
}

.legal-main {
  width: min(calc(100% - 32px), 920px);
  margin: 38px auto 70px;
  padding: clamp(25px, 6vw, 64px);
  background: rgba(12, 24, 37, 0.94);
  border: 1px solid var(--line-accent);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px) saturate(1.06);
}

.draft-banner {
  margin: -14px 0 34px;
  padding: 12px 14px;
  color: #ffe0a6;
  background: rgba(160, 108, 31, 0.2);
  border: 1px solid rgba(240, 173, 117, 0.42);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font: 500 clamp(46px, 8vw, 82px)/0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

h2 { margin-top: 38px; font-size: 24px; }
h3 { margin-top: 25px; }
p, li { color: var(--text-soft); }
li + li { margin-top: 7px; }
.legal-meta { color: var(--muted); font-size: 13px; }

.contact-card {
  margin-top: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(217, 144, 88, 0.12), rgba(51, 72, 96, 0.25));
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-card strong { color: var(--ivory); }
.contact-card p { margin: 5px 0 0; }

.deletion-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  color: var(--ivory);
  background: var(--surface);
  border: 1px solid rgba(247, 241, 231, 0.2);
  border-radius: 9px;
  font: inherit;
}

textarea::placeholder,
input::placeholder { color: #8390a1; opacity: 1; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 3px rgba(240, 173, 117, 0.15);
}

button {
  min-height: 48px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--copper-bright);
  border: 1px solid var(--copper-bright);
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

button:hover { background: #f6bb89; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32); }
#deletionMessage { min-height: 24px; color: var(--copper-bright); font-weight: 800; }

#removalMessage { min-height: 24px; color: var(--copper-bright); font-weight: 800; }

.form-help,
.small-print {
  color: var(--muted);
  font-size: 12px;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.urgent-card {
  margin: 24px 0 34px;
  padding: 20px;
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(171, 65, 54, 0.25), rgba(217, 144, 88, 0.15));
  border: 1px solid rgba(255, 164, 142, 0.5);
  border-radius: 12px;
}

.urgent-card p { margin: 6px 0 0; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.action-link {
  display: grid;
  gap: 5px;
  padding: 18px;
  color: var(--ivory);
  background: rgba(51, 72, 96, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.action-link span { color: var(--text-soft); font-size: 13px; }
.action-link:hover { border-color: var(--line-accent); }

.powered-footer {
  margin: 0;
  padding: 14px 20px;
  color: #fff;
  background: #101816;
  text-align: center;
  font: 600 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .04em;
}

.legal-footer {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto 35px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 600px) {
  body { background-position: 38% top; background-attachment: scroll; }
  .legal-header { align-items: flex-start; flex-direction: column; padding-block: 15px; }
  .legal-header nav { gap: 8px 12px; }
  h1 { letter-spacing: -2px; }
  .link-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
