:root {
  --cream: #fff9f3;
  --cream-deep: #f7eee5;
  --burgundy: #7a1e2c;
  --burgundy-dark: #50131f;
  --burgundy-soft: #f2dfe0;
  --gold: #c89b3c;
  --ink: #1d1a1b;
  --muted: #70696a;
  --line: rgba(122, 30, 44, 0.15);
  --shadow: 0 22px 60px rgba(80, 19, 31, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 0%, rgba(200, 155, 60, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(122, 30, 44, 0.08), transparent 27rem),
    var(--cream);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.page-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 243, 0.78);
  backdrop-filter: blur(16px);
}

.header-inner, .site-nav, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 24px; }
.brand { gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 18px rgba(80, 19, 31, 0.14); }
.site-nav { gap: 22px; color: var(--muted); font-size: 0.94rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--burgundy); }

.hero { padding: 92px 0 78px; max-width: 820px; }
.eyebrow { color: var(--burgundy); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.045em; }
h1 { margin-top: 14px; font-size: clamp(2.7rem, 7vw, 5.6rem); max-width: 800px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.08rem; }
.lede { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--burgundy); box-shadow: 0 10px 22px rgba(122, 30, 44, 0.2); }
.button-secondary { color: var(--burgundy); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.45); }

.section { padding: 24px 0 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .faq-item, .policy-section { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.54); box-shadow: var(--shadow); }
.card { padding: 26px; }
.card h3 { color: var(--burgundy-dark); }
.card p { margin: 10px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 750; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { float: right; color: var(--burgundy); content: "+"; font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: -4px 24px 22px; color: var(--muted); }

.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; padding: 30px; border-radius: var(--radius-lg); color: #fff; background: var(--burgundy); box-shadow: 0 24px 60px rgba(80, 19, 31, 0.2); }
.contact-card p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.76); }
.contact-card .button-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.32); background: transparent; }
.contact-note { margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; }

.policy-intro { padding: 58px 0 34px; }
.policy-intro h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }
.policy-list { display: grid; gap: 14px; max-width: 820px; }
.policy-section { padding: 26px; }
.policy-section h2 { font-size: 1.35rem; color: var(--burgundy-dark); }
.policy-section p { margin: 12px 0 0; color: var(--muted); }
.policy-section ul { margin: 14px 0 0; padding-left: 22px; color: var(--muted); }
.policy-section li + li { margin-top: 7px; }
.policy-section strong { color: var(--ink); }

.deletion-page { max-width: 860px; }
.deletion-intro { padding-bottom: 28px; }
.deletion-intro h1 { max-width: 760px; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.deletion-card, .status-card, .local-data-note {
  margin-bottom: 18px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}
.deletion-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.deletion-card-heading h2, .status-card h2, .local-data-note h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.step-label { display: block; margin-bottom: 7px; color: var(--burgundy); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.deletion-copy, .privacy-note, .status-card p, .local-data-note p { color: var(--muted); }
.provider-actions { display: grid; gap: 10px; margin: 24px 0 14px; }
button { font: inherit; }
.provider-button {
  min-height: 52px;
  border: 1px solid rgba(122, 30, 44, 0.18);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}
.provider-button:hover, .provider-button:focus-visible { border-color: var(--burgundy); box-shadow: 0 8px 20px rgba(80, 19, 31, 0.09); }
.privacy-note { margin: 0; font-size: 0.88rem; }
.text-button { padding: 7px 0; border: 0; color: var(--burgundy); background: transparent; font-weight: 750; cursor: pointer; }
.account-identity { display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 16px; border-radius: 16px; background: var(--cream-deep); }
.account-avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: var(--burgundy); font-size: 1.2rem; font-weight: 800; }
.account-identity strong, .account-identity span, .account-identity small { display: block; }
.account-identity span, .account-identity small { color: var(--muted); overflow-wrap: anywhere; }
.danger-notice { padding: 18px; border: 1px solid rgba(122, 30, 44, 0.19); border-radius: 16px; background: var(--burgundy-soft); }
.danger-notice h3 { color: var(--burgundy-dark); }
.danger-notice p { margin: 8px 0 0; color: #5d3e43; }
.confirmation-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 22px 0; cursor: pointer; }
.confirmation-check input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--burgundy); }
.deletion-actions { display: flex; justify-content: flex-end; gap: 10px; }
.deletion-actions .button, .status-card .button { cursor: pointer; }
.button-danger { border: 0; color: #fff; background: var(--burgundy); box-shadow: 0 10px 22px rgba(122, 30, 44, 0.2); }
.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }
.status-card { display: flex; align-items: center; gap: 18px; }
.status-card h2 { margin-bottom: 7px; }
.status-card p { margin: 0; }
.status-card-success { border-color: rgba(36, 113, 82, 0.25); background: rgba(239, 249, 244, 0.9); }
.status-card-error { display: block; border-color: rgba(122, 30, 44, 0.24); background: rgba(252, 238, 239, 0.92); }
.status-card-error .button { margin-top: 18px; }
.loading-indicator { width: 26px; height: 26px; flex: 0 0 26px; border: 3px solid var(--burgundy-soft); border-top-color: var(--burgundy); border-radius: 50%; animation: spin 0.8s linear infinite; }
.local-data-note { margin-top: 34px; background: transparent; box-shadow: none; }
.local-data-note p { margin: 10px 0 0; }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { margin-top: 56px; padding: 26px 0 42px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { color: var(--burgundy); text-decoration: none; font-weight: 700; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 28px, 560px); }
  .site-header { padding: 16px 0; }
  .site-nav { gap: 12px; font-size: 0.86rem; }
  .brand span { display: none; }
  .hero { padding: 62px 0 50px; }
  .card-grid, .contact-card { grid-template-columns: 1fr; }
  .section { padding-bottom: 56px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .contact-card .button { width: 100%; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 8px; }
  .deletion-card-heading { display: block; }
  .deletion-card-heading .text-button { margin-top: 8px; }
  .deletion-actions { display: grid; }
  .deletion-actions .button { width: 100%; }
}
