/* ── Shared styles for static pages (About, Contact, Privacy, Terms, Refund) ── */

.page-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  padding: 0 1.25rem;
}
.page-nav-shell {
  width: min(1220px, 100%);
  height: 68px;
  margin: auto;
  padding: 0 14px 0 20px;
  display: flex;
  align-items: center;
  gap: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.page-nav-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--white);
}
.page-nav-shell .brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.page-nav-shell .page-nav-links {
  display: flex;
  gap: 1.4rem;
  margin: auto;
}
.page-nav-shell .page-nav-links a {
  color: var(--text-muted);
  font-size: .87rem;
  transition: color var(--ease);
  text-decoration: none;
}
.page-nav-shell .page-nav-links a:hover { color: #fff; }
.page-nav-shell .back-to-home {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  border: 1px solid var(--red);
  padding: .62rem .85rem;
  border-radius: .72rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(229,9,20,.2);
  transition: transform var(--ease), background var(--ease);
}
.page-nav-shell .back-to-home:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

/* ── Page Hero Banner ── */
.page-hero {
  padding: 7rem 0 3.5rem;
  background: radial-gradient(ellipse 50% 50% at 50% 80%, rgba(229,9,20,.12), transparent 65%);
  text-align: center;
}
.page-hero .eyebrow {
  margin: 0 0 1rem;
  color: var(--red-bright);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.065em;
  line-height: 1.08;
}
.page-hero h1 em {
  color: #b6b6b6;
  font-style: normal;
}
.page-hero .page-intro {
  max-width: 600px;
  margin: 1.2rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── Page Content ── */
.page-body {
  padding: 4rem 0 5rem;
}
.page-body .container {
  width: min(var(--container), calc(100% - 3rem));
  margin: auto;
}
.page-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 860px;
  margin: auto;
}
.page-content-grid h2 {
  margin: 2rem 0 .8rem;
  color: #fff;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}
.page-content-grid h3 {
  margin: 1.5rem 0 .5rem;
  color: #fff;
  font-size: 1.15rem;
}
.page-content-grid p,
.page-content-grid li {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin: .5rem 0;
}
.page-content-grid ul,
.page-content-grid ol {
  padding-left: 1.5rem;
}
.page-content-grid a {
  color: var(--red-bright);
  text-decoration: underline;
  text-decoration-color: rgba(229,9,20,.4);
  text-underline-offset: .2rem;
  transition: color var(--ease);
}
.page-content-grid a:hover { color: #fff; }
.page-content-grid strong { color: #fff; }

/* ── Section Cards (for About page) ── */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.about-card {
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform var(--ease), border-color var(--ease);
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,31,50,.45);
}
.about-card .card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .75rem;
  background: var(--red-wash);
  color: var(--red-bright);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.about-card h3 {
  margin: 0 0 .5rem;
  color: #fff;
  font-size: 1rem;
}
.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.55;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.team-member {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform var(--ease), border-color var(--ease);
}
.team-member:hover {
  transform: translateY(-3px);
  border-color: rgba(255,31,50,.35);
}
.team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red-wash), #1a1a1a);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--red-bright);
  font-size: 1.8rem;
  font-weight: 800;
}
.team-member h4 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: .95rem;
}
.team-member p {
  margin: 0;
  color: var(--text-faint);
  font-size: .78rem;
}

/* ── Contact Form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 920px;
  margin: auto;
}
.contact-info {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.contact-item {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  transition: border-color var(--ease);
}
.contact-item:hover {
  border-color: rgba(255,31,50,.35);
}
.contact-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  background: var(--red-wash);
  color: var(--red-bright);
  font-size: 1.3rem;
}
.contact-item h3 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: .92rem;
}
.contact-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
}
.contact-item a {
  color: var(--red-bright);
  text-decoration: none;
  font-weight: 600;
}
.contact-form-wrapper {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #151515, #0a0a0a);
}
.contact-form-wrapper h2 {
  margin: 0 0 .4rem;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.contact-form-wrapper > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: .82rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .4rem;
  color: var(--text);
  font-size: .79rem;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: .7rem;
  background: rgba(5,5,5,.45);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  border: 1px solid var(--red);
  border-radius: .7rem;
  padding: .75rem 1rem;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 .6rem 1.3rem rgba(229,9,20,.2);
  transition: transform var(--motion-fast), background var(--motion-fast);
}
.contact-submit:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}
.contact-success {
  text-align: center;
  padding: 2rem 1rem;
}
.contact-success .success-icon {
  display: inline-grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(76,199,115,.14);
  color: var(--success);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-success h3 { color: #fff; margin: .5rem 0; }
.contact-success p { color: var(--text-muted); font-size: .85rem; }

/* ── Legal content styling ── */
.legal-content {
  max-width: 780px;
  margin: auto;
}
.legal-content .effective-date {
  display: inline-block;
  margin: 0 0 2rem;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
}
.legal-content h2 {
  margin: 2.5rem 0 .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.legal-content h3 {
  margin: 1.5rem 0 .5rem;
  color: #fff;
  font-size: 1.05rem;
}
.legal-content p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.72;
  margin: .5rem 0;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.legal-content li {
  font-size: .88rem;
  line-height: 1.72;
  margin: .35rem 0;
}
.legal-content strong { color: #fff; }
.legal-content a {
  color: var(--red-bright);
  text-decoration: underline;
  text-decoration-color: rgba(229,9,20,.4);
  text-underline-offset: .2rem;
}

/* ── Account Settings Dialog ── */
.account-dialog {
  width: min(58rem, calc(100% - 2rem));
  max-height: min(52rem, calc(100% - 1.25rem));
  overflow: auto;
  padding: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 1.35rem;
  box-shadow: 0 1.75rem 5rem rgba(0,0,0,.52);
}
.account-dialog::backdrop {
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(7px);
}
.account-dialog .dialog-close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  background: rgba(5,5,5,.46);
  border-color: var(--line-strong);
}
.account-shell {
  display: grid;
  grid-template-columns: 14rem 1fr;
  min-height: 30rem;
}
.account-sidebar {
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, #151515, #080808);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.account-user-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.account-user-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red-wash), #1a1a1a);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--red-bright);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.account-user-info h3 {
  margin: 0;
  color: #fff;
  font-size: .92rem;
}
.account-user-info p {
  margin: .15rem 0 0;
  color: var(--text-faint);
  font-size: .75rem;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--motion-fast);
  text-align: left;
  width: 100%;
}
.account-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}
.account-nav-item.active {
  color: #fff;
  background: var(--red-wash);
  border-color: rgba(255,31,50,.4);
}
.account-nav-item span {
  font-size: 1rem;
}
.account-panel {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
}
.account-panel h2 {
  margin: 0 0 .5rem;
  color: #fff;
  font-size: 1.65rem;
  letter-spacing: -.05em;
}
.account-panel > p {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: .88rem;
}
.settings-form {
  display: grid;
  gap: 1.1rem;
  max-width: 420px;
}
.settings-field {
  display: grid;
  gap: .4rem;
  color: var(--text);
  font-size: .79rem;
  font-weight: 700;
}
.settings-field input {
  width: 100%;
  height: 3rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: .7rem;
  background: rgba(5,5,5,.45);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.settings-field input:focus {
  outline: 0;
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.settings-field input[readonly] {
  opacity: .6;
  cursor: not-allowed;
}
.settings-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  height: 3rem;
  border: 1px solid var(--red);
  border-radius: .7rem;
  padding: .7rem 1rem;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 .5rem 1.2rem rgba(229,9,20,.2);
  transition: transform var(--motion-fast), background var(--motion-fast);
}
.settings-submit:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}
.settings-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.settings-alert {
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid rgba(255,77,87,.4);
  border-radius: .6rem;
  background: rgba(229,9,20,.12);
  color: #ffd7da;
  font-size: .8rem;
}
.settings-success {
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid rgba(76,199,115,.4);
  border-radius: .6rem;
  background: rgba(76,199,115,.1);
  color: var(--success);
  font-size: .8rem;
}

/* ── MFA Setup ── */
.mfa-status {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--card);
  margin-bottom: 1.5rem;
}
.mfa-badge {
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mfa-badge.enabled {
  background: rgba(76,199,115,.15);
  color: var(--success);
  border: 1px solid rgba(76,199,115,.35);
}
.mfa-badge.disabled {
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  border: 1px solid var(--line);
}
.mfa-setup-steps {
  display: grid;
  gap: 1.5rem;
}
.mfa-step {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mfa-step-number {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-wash);
  color: var(--red-bright);
  font-size: .72rem;
  font-weight: 800;
  margin-right: .5rem;
}
.mfa-step h4 {
  display: inline;
  color: #fff;
  font-size: .9rem;
}
.mfa-step p {
  margin: .5rem 0 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.mfa-qr-wrap {
  display: grid;
  justify-items: center;
  margin: 1rem 0;
}
.mfa-qr-wrap img {
  width: 11rem;
  height: 11rem;
  padding: .5rem;
  background: #fff;
  border-radius: .8rem;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.3);
}
.mfa-secret-code {
  display: block;
  margin-top: .5rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #0d0d0d;
  color: var(--red-bright);
  font-size: .75rem;
  font-family: monospace;
  word-break: break-all;
  text-align: center;
}
.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
  margin: 1rem 0;
}
.recovery-codes code {
  display: block;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #0d0d0d;
  color: var(--success);
  font-size: .75rem;
  font-family: monospace;
  text-align: center;
}

/* ── Page Footer (shared) ── */
.page-footer {
  padding: 4rem 0 1.2rem;
  border-top: 1px solid var(--line);
  background: #070707;
}
.page-footer .container {
  width: min(var(--container), calc(100% - 3rem));
  margin: auto;
}
.page-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}
.page-footer h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 1rem;
  color: var(--white);
}
.page-footer p {
  max-width: 280px;
  color: var(--text-faint);
  font-size: .8rem;
}
.page-footer a {
  display: block;
  margin: .5rem 0;
  color: var(--text-muted);
  font-size: .87rem;
  text-decoration: none;
  transition: color var(--ease);
}
.page-footer a:hover { color: #fff; }
.page-footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: .75rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .page-nav-shell .page-nav-links { display: none; }
  .page-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .page-footer-grid > div:last-child { display: none; }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { flex-direction: row; flex-wrap: wrap; padding: 1.2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-user-info { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; margin-right: auto; }
  .account-user-avatar { display: none; }
}
@media (max-width: 620px) {
  .page-header { top: .55rem; padding: 0 .65rem; }
  .page-nav-shell { height: 60px; padding-left: 12px; gap: .6rem; }
  .page-nav-shell .brand span { display: none; }
  .page-hero { padding: 5.5rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .about-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .page-footer-grid { grid-template-columns: 1fr 1fr; }
  .page-footer-grid > div:first-child { grid-column: span 2; }
  .page-footer-bottom { flex-direction: column; gap: .4rem; }
  .account-nav-item { padding: .55rem .65rem; font-size: .76rem; }
}
