/* ============================================
   Shared Styles — OutputWork
   ============================================ */

html {
  scroll-padding-top: 82px;
}

:root {
  --primary: #0a192f;
  --primary-light: #172a45;
  --secondary: #002952;
  --warning: #f59e0b;
  --warning-hover: #d97706;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow: rgba(245, 158, 11, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--warning);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Background Gradients — fixed so they stay in view on scroll */
.bg-glow-1 {
  position: fixed;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.08) 0%,
    rgba(10, 25, 47, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.bg-glow-2 {
  position: fixed;
  top: 40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.05) 0%,
    rgba(10, 25, 47, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  background-color: rgba(10, 25, 47, 0.75);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.75rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-logo span {
  color: var(--warning);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.28s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(8, 20, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 1.5rem 1.5rem;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s ease;
  display: block;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
}

.mobile-nav .mobile-nav-cta {
  margin-top: 1rem;
  padding: 0.875rem;
  text-align: center;
  background-color: var(--warning);
  color: var(--primary);
  border-radius: 10px;
  font-weight: 700;
  border-bottom: none;
}

.mobile-nav .mobile-nav-cta:hover {
  background-color: var(--warning-hover);
  color: var(--primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

.btn-text {
  color: #fff;
}

.btn-text:hover {
  color: var(--warning);
}

.btn-primary {
  background-color: var(--warning);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background-color: var(--warning-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem;
  background-color: rgba(10, 25, 47, 0.9);
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Legal Pages (shared) ── */
.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 2rem 6rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  position: relative;
  z-index: 10;
}

.legal-sidebar {
  position: sticky;
  top: 7rem;
  height: fit-content;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  line-height: 1.4;
  display: block;
}

.toc-link:hover {
  color: var(--warning);
  padding-left: 4px;
}

.legal-content {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 2rem;
}

.legal-header h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 8rem;
}

.legal-section h2 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.legal-section p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-section li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-section strong {
  color: #fff;
}

/* Mobile TOC dropdown — shown on small screens only */
.mobile-toc-select {
  display: none;
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: var(--primary-light);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 2rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.mobile-toc-select option {
  background-color: var(--primary-light);
}

/* Card instruction (deletion page) */
.card-instruction {
  background-color: var(--primary-light);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-instruction h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.25rem;
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-sign-in,
  .nav-get-started {
    display: none;
  }

  .nav-cta {
    gap: 0.5rem;
  }

  .nav-cta .btn:not(.nav-hamburger) {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding-top: 7rem;
  }

  .legal-sidebar {
    display: none;
  }

  .mobile-toc-select {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
