:root {
  color-scheme: light;
  --ink: #342a24;
  --muted: #736760;
  --line: #eadfd6;
  --paper: #fffaf4;
  --soft: #f7efe6;
  --accent: #d9694a;
  --accent-dark: #9e4935;
  --mint: #477f73;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(92, 65, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  background:
    linear-gradient(135deg, rgba(217, 105, 74, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(71, 127, 115, 0.10), transparent 38%),
    var(--paper);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mint);
}

.site-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(217, 105, 74, 0.24);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(217, 105, 74, 0.12);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero,
.document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 7vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

.link-card {
  display: block;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}

.link-card:hover {
  border-color: rgba(217, 105, 74, 0.45);
  color: var(--ink);
  background: #fff3e7;
}

.link-card strong {
  display: block;
  font-size: 1.05rem;
}

.link-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact {
  margin-top: 28px;
  color: var(--muted);
}

.document {
  padding: clamp(24px, 5vw, 48px);
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.document h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.document p {
  margin: 12px 0;
}

.document ul,
.document ol {
  padding-left: 1.25rem;
}

.document li {
  margin: 7px 0;
}

.effective-date {
  margin-top: 12px;
  color: var(--muted);
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--mint);
  border-radius: 8px;
  background: rgba(71, 127, 115, 0.08);
  color: #355f57;
}

.account-delete-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.account-delete-page .notice ul {
  margin-bottom: 14px;
}

.account-delete-page button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 18px;
}

.account-delete-page button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.action-button {
  color: var(--white);
  background: var(--accent-dark);
}

.action-button:hover:not(:disabled) {
  background: var(--mint);
}

.delete-panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(217, 105, 74, 0.32);
  border-radius: 8px;
  background: #fff8f1;
}

.signed-in-as {
  margin-top: 0;
  color: var(--mint);
  font-weight: 800;
}

.delete-panel label {
  display: block;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 800;
}

.delete-panel input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.delete-panel input:focus {
  outline: 2px solid rgba(71, 127, 115, 0.36);
  outline-offset: 1px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.danger-button {
  color: var(--white);
  background: var(--accent);
}

.danger-button:hover:not(:disabled) {
  background: var(--accent-dark);
}

.secondary-button {
  color: var(--ink);
  background: var(--line);
}

.form-status {
  min-height: 1.7em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status[data-kind="error"] {
  color: var(--accent-dark);
}

.form-status[data-kind="success"] {
  color: var(--mint);
  font-weight: 800;
}

.support-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.account-delete-page hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.footer {
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 28px, 920px);
    padding-top: 24px;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
