/* AI YourSong — shared bubble / glass legal styles */
:root {
  --bg: #0b0b10;
  --bg-deep: #06060a;
  --surface: #16161e;
  --surface-frost: rgba(26, 26, 36, 0.72);
  --text: #f5f5f7;
  --muted: #b0b0bc;
  /* Align with Flutter AppColors: purple = brand, gold = accent/CTA */
  --purple: #9b5cff;
  --accent: #d4af37;
  --gold: #d4af37;
  --emerald: #2dd4a8;
  --border: rgba(56, 56, 72, 0.4);
  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(155, 92, 255, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(45, 212, 168, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 2rem 1rem 4rem;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-frost);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 2.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

h1 {
  background: linear-gradient(90deg, #8b5cff, #6b8cff, #2dd4a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  color: var(--text);
  line-height: 1.3;
}

p, li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover { color: var(--emerald); }

.updated { font-size: 0.9rem; color: var(--muted); }

.pill-link,
.legal-nav a {
  display: inline-block;
  margin: 0.4rem 0.35rem 0.4rem 0;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(155, 92, 255, 0.14);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill-link:hover,
.legal-nav a:hover {
  background: rgba(45, 212, 168, 0.18);
  color: var(--text);
  transform: translateY(-1px);
}

.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.center-page main {
  width: 100%;
  max-width: 480px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #8b5cff, #6b8cff, #2dd4a8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 28px rgba(155, 92, 255, 0.35);
}

@media (max-width: 480px) {
  body { padding: 1rem 0.75rem 3rem; }
  main { padding: 1.25rem 1rem 1.75rem; border-radius: var(--radius); }
}

/* Forms / delete-account cards */
.card {
  background: rgba(22, 22, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  margin: 1rem 0 1.5rem;
}

.card strong { color: var(--text); }

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #12121a;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-purple {
  background: linear-gradient(90deg, #8b5cff, #6b8cff);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(90deg, #d4af37, #9b5cff);
  color: #0b0b10;
}

.btn-danger {
  background: #ff4d6d;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: var(--muted);
}

.signed-in {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
}

.signed-in img {
  border-radius: 999px;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.hidden { display: none !important; }

.status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(45, 212, 168, 0.12);
  color: var(--text);
}

footer {
  margin-top: 2rem;
  text-align: center;
}

h3 { color: var(--text); margin-top: 1.5rem; }

/* Highlight boxes for critical legal / security notes */
.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(155, 92, 255, 0.1);
}

.callout.warn {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
}

.callout p {
  margin: 0;
  color: var(--text);
}

.callout p + p {
  margin-top: 0.65rem;
}

.callout strong {
  color: var(--text);
}

