/* =========================================
   SUPERHEROOO — Privacy Policy Styles
   ========================================= */

:root {
  --navy: #0f1a3a;
  --navy-light: #1c2b5a;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --text: #334155;
  --text-muted: #64748b;
  --heading: #0f172a;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(15, 26, 58, 0.08);
  --radius: 0.75rem;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", var(--font-body);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 24px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.header__logo span {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.header__btn {
  background: var(--navy);
  color: var(--white);
}

.header__btn:hover {
  background: var(--navy-light);
  color: var(--white);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Legal Content */
.legal-content {
  padding: 140px 0 80px;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--text);
}

.legal-content a {
  color: #000000;
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.legal-content ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal-content ul li {
  margin-bottom: 8px;
  color: var(--text);
}

.last-updated {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin-bottom: 8px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}

/* Policy Table */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.policy-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

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

.policy-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}

.footer p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    top: 90px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
  }

  .header__nav a:hover {
    background: #f1f5f9;
  }

  .header__btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .legal-content {
    padding: 120px 0 60px;
  }

  .legal-content h1 {
    font-size: 1.9rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }

  .legal-content h3 {
    font-size: 1.05rem;
  }

  .policy-table {
    font-size: 0.9rem;
  }

  .policy-table th,
  .policy-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header__inner {
    padding: 12px 18px;
  }

  .header__logo {
    font-size: 1.25rem;
  }

  .legal-content {
    padding: 110px 0 48px;
  }

  .legal-content h1 {
    font-size: 1.65rem;
  }

  .legal-content h2 {
    font-size: 1.15rem;
  }

  .policy-table,
  .policy-table thead,
  .policy-table tbody,
  .policy-table th,
  .policy-table td,
  .policy-table tr {
    display: block;
  }

  .policy-table thead {
    display: none;
  }

  .policy-table td {
    position: relative;
    padding-left: 50%;
    border-bottom: 1px solid var(--border);
  }

  .policy-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 18px;
    width: 45%;
    font-weight: 600;
    color: var(--navy);
  }

  .policy-table td:first-child::before {
    content: "Situation";
  }

  .policy-table td:last-child::before {
    content: "Policy";
  }
}

/* =========================================
   GENERAL LEGAL TABLE (For Terms of Service)
   ========================================= */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

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

.legal-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.legal-table .highlight-col {
  font-weight: 600;
  color: var(--navy);
  width: 30%;
}

@media (max-width: 768px) {

  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table th,
  .legal-table td,
  .legal-table tr {
    display: block;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    border-bottom: 2px solid var(--border);
  }

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

  .legal-table td {
    position: relative;
    padding-left: 45%;
    border-bottom: 1px solid var(--border);
  }

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

  .legal-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 18px;
    width: 40%;
    font-weight: 600;
    color: var(--navy);
  }

  .legal-table .highlight-col {
    width: auto;
  }
}

/* =========================================
   NEW PRIVACY POLICY V1.1 UI COMPONENTS
   ========================================= */

.legal-section {
  scroll-margin-top: 100px;
}

.doc-header {
  margin-bottom: 40px;
}

.badge-accent {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 4px;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.title-divider {
  height: 3px;
  width: 80px;
  background: var(--accent);
  margin: 12px 0 16px;
  border-radius: 2px;
}

.doc-subtitle {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.meta-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 2px;
}

.header-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 800px;
  background: #ffffff;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

/* TOC Box */
.toc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.toc-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 0 !important;
  padding: 0 !important;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.93rem;
  color: var(--text);
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--accent) !important;
  transform: translateX(3px);
}

.toc-num {
  font-weight: 600;
  color: var(--accent);
  shrink: 0;
}

.sec-num {
  color: var(--accent);
  margin-right: 8px;
}

.font-medium {
  font-weight: 600;
  color: var(--heading);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 28px;
}

.table-responsive .policy-table {
  margin: 0;
}

@media (max-width: 768px) {
  .toc-grid {
    grid-template-columns: 1fr;
  }
}