/* ==========================================================================
   GYVO — Legal & Compliance Stylesheet
   Covers: Privacy Policy, Terms & Conditions, Account Deletion, Data Safety
   ========================================================================== */

/* ── Top Navigation Bar ── */
.legal-navbar,
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--rail-bg, rgba(10, 13, 11, 0.94));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

[data-theme="light"] .legal-navbar,
[data-theme="light"] .blog-nav {
  background: rgba(244, 247, 245, 0.94);
}

.legal-navbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-nav-brand,
.blog-nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.legal-nav-logo,
.blog-nav-brand img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.legal-nav-actions,
.blog-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav-link,
.blog-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.legal-nav-link:hover,
.blog-nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--line);
}

.legal-nav-link.active,
.blog-nav-link.active {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.legal-nav-link i,
.blog-nav-link i {
  font-size: 16px;
  color: var(--green);
}

/* Theme Toggle Button */
.legal-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 6px;
}

.legal-theme-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.legal-theme-btn .icon-sun {
  display: inline-block;
  font-size: 18px;
}
.legal-theme-btn .icon-moon {
  display: none;
  font-size: 18px;
}
[data-theme="light"] .legal-theme-btn .icon-sun {
  display: none;
}
[data-theme="light"] .legal-theme-btn .icon-moon {
  display: inline-block;
}

/* Mobile Menu Toggle Button */
.legal-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.legal-menu-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Mobile Navigation Drawer for Legal Pages & Blog */
.legal-mobile-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background: rgba(10, 13, 11, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px 48px;
  box-sizing: border-box;
}

[data-theme="light"] .legal-mobile-drawer {
  background: rgba(244, 247, 245, 0.96);
}

.legal-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legal-drawer-content {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-mobile-drawer.is-open .legal-drawer-content {
  transform: translateY(0);
}

.legal-drawer-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

[data-theme="light"] .legal-drawer-link {
  background: #ffffff;
}

.legal-drawer-link:hover,
.legal-drawer-link.active {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.legal-drawer-link i {
  font-size: 18px;
  color: var(--green);
  width: 22px;
  display: flex;
  justify-content: center;
}

.legal-drawer-link.drawer-pill-highlight {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(52, 211, 153, 0.3);
}

.legal-drawer-footer {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-drawer-footer .powered-by {
  justify-content: center;
  color: var(--ink-faint);
}

@media (max-width: 768px) {
  .legal-navbar,
  .blog-nav {
    height: 60px;
  }
  .legal-navbar-inner {
    padding: 0 14px;
  }
  .legal-nav-logo,
  .blog-nav-brand img {
    height: 30px;
    max-width: 130px;
  }
  .legal-menu-toggle {
    display: inline-flex;
  }
  .legal-nav-link-desktop {
    display: none !important;
  }
  .legal-nav-link {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .legal-nav-link span {
    display: inline-block;
  }
  .legal-page {
    padding-top: 80px;
  }
}

/* ── Base Layout & Variables ── */
.legal-page {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 80px;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* ── Global Legal Page Footer ── */
.legal-footer,
.reality-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 32px 24px;
  margin-top: 60px;
  box-sizing: border-box;
}

.legal-footer-inner,
.reality-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-dim);
}

.legal-footer-brand,
.reality-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.powered-by img {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* Background ambient glow */
.legal-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100vw;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .legal-glow {
  background: radial-gradient(ellipse at center, rgba(13, 138, 91, 0.06) 0%, transparent 70%);
}

.legal-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .legal-container {
    padding: 0 16px;
  }
}

/* ── Top Header / Hero ── */
.legal-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 20px 0 16px;
    margin-bottom: 20px;
  }
  .legal-hero h1 {
    font-size: 26px;
  }
  .legal-badge {
    white-space: normal;
    text-align: left;
    max-width: 100%;
  }
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legal-breadcrumbs a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-breadcrumbs a:hover {
  color: var(--green);
}

.legal-breadcrumbs .sep {
  opacity: 0.5;
  font-size: 11px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-hero h1 span {
  color: var(--green);
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Quick Highlights Cards ── */
.legal-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .legal-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.highlight-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.highlight-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ── Two Column Content Layout ── */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .legal-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ── Sticky Sidebar TOC ── */
.legal-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.toc-mobile-badge {
  display: none;
}

.legal-sidebar-body {
  display: block;
}

@media (max-width: 960px) {
  .legal-sidebar {
    position: static;
    max-height: none;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: var(--surface);
    transition: all 0.25s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .sidebar-title {
    margin-bottom: 0 !important;
    font-size: 13.5px;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }
  .toc-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .toc-chevron {
    transition: transform 0.25s ease;
    display: inline-block;
  }
  .legal-sidebar.is-expanded .toc-chevron {
    transform: rotate(180deg);
  }
  .legal-sidebar-body {
    display: none;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    width: 100%;
    box-sizing: border-box;
  }
  .legal-sidebar.is-expanded .legal-sidebar-body {
    display: block;
    animation: fadeIn 0.25s ease;
  }
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.toc-link.active {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  font-weight: 500;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}

.sidebar-quicklinks {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sidebar-quicklinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

.sidebar-quicklinks a:hover {
  color: var(--green);
}

/* ── Main Legal Article ── */
.legal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 20px 14px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.legal-section {
  scroll-margin-top: 100px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.3;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.legal-section h2 .sec-num {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-section p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-section a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-section p strong {
  color: var(--ink);
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 18px 24px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .legal-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .legal-section h2 {
    font-size: 18px;
    gap: 8px;
  }
  .legal-section h3 {
    font-size: 15px;
  }
  .legal-section p {
    font-size: 14px;
    line-height: 1.65;
  }
  .legal-section ul,
  .legal-section ol {
    margin-left: 18px;
    font-size: 13.5px;
  }
}

.legal-section li {
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.legal-section li strong {
  color: var(--ink);
}

/* Callout Note Boxes */
.callout-box {
  background: var(--surface-2);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 640px) {
  .callout-box {
    padding: 14px 14px 14px 16px;
    margin: 16px 0;
  }
}

.callout-box.warning {
  border-left-color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
}

.callout-box.info {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.callout-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Compliance Tables */
.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin: 12px 0 6px;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: inline-flex;
  }
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}

.compliance-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.compliance-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.compliance-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}

@media (max-width: 640px) {
  .compliance-table {
    font-size: 12px;
  }
  .compliance-table th,
  .compliance-table td {
    padding: 10px 12px;
  }
}

.compliance-table tr:last-child td {
  border-bottom: none;
}

.compliance-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .compliance-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* Status Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.pill-green {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
}

.pill-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.pill-amber {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.pill-gray {
  background: var(--surface-2);
  color: var(--ink-dim);
}

/* ── Interactive Account Deletion Form ── */
.deletion-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .deletion-card {
    padding: 18px 14px;
    border-radius: 12px;
  }
}

.deletion-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 4px;
}

.form-label .req {
  color: #f87171;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.form-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  flex: 1;
}

.btn-delete-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 600px) {
  .btn-delete-submit {
    width: 100%;
    padding: 13px 18px;
  }
}

.btn-delete-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-delete-submit:active {
  transform: translateY(0);
}

.deletion-success-alert {
  display: none;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.deletion-success-alert.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Contact / Grievance Card ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.contact-card-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.contact-card-val a {
  color: var(--green);
  text-decoration: none;
}

.contact-card-val a:hover {
  text-decoration: underline;
}

/* ── Policy Footer Links ── */
.legal-footer-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}

.legal-footer-nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer-nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer-nav-links a:hover,
.legal-footer-nav-links a.active {
  color: var(--green);
}

@media (max-width: 768px) {
  .legal-footer-inner,
  .reality-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .legal-footer-brand,
  .reality-footer-brand {
    flex-direction: column;
    gap: 8px;
  }
  .legal-footer-nav {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .legal-footer-nav-links {
    justify-content: center;
    gap: 12px;
  }
}

