/* ═══════════════════════════════════════════════════
   Global Styles
   sparrowhub.com.au
═══════════════════════════════════════════════════ */

/* ══ RESET ══ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══ CSS VARIABLES ══ */
:root {
  --pink: #FF0050;
  --pink-mid: #FF3370;
  --pink-bg: #FFF0F4;
  --navy: #0B1E3D;
  --navy-mid: #132D5E;
  --navy-light: #1A3F7A;
  --blue: #2B5CB8;
  --blue-light: #7AAEF0;
  --blue-bg: #EBF2FF;
  --blue-border: #B8CDFF;
  --black: #0D0D0D;
  --dark: #111111;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F6;
  --gray-200: #E8E8EE;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ══ BASE ══ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em {
  font-style: normal;
  color: var(--pink);
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.btn-primary:hover {
  background: #cc0040;
  border-color: #cc0040;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 0, 80, .28);
}

/* ══ LAYOUT ══ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ══ NAV ══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .18s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right .login {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
}

.nav-right .login:hover {
  color: var(--black);
}

.nav-right .btn {
  padding: 9px 20px;
  font-size: 14px;
}

/* ══ FOOTER ══ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 68px 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
  align-items: center;
}

.foot-brand img {
  height: 28px;
}

.foot-brand p {
  font-size: 14px;
  color: #4B5563;
  margin-top: 18px;
  max-width: 260px;
  line-height: 1.72;
}

.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 20px;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-col a {
  font-size: 14px;
  color: #4B5563;
  text-decoration: none;
  transition: color .18s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.foot-bottom p {
  font-size: 13px;
  color: #374151;
}

.foot-bottom a {
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}

.foot-bottom a:hover {
  color: #6B7280;
}

.foot-legal {
  display: flex;
  gap: 24px;
}

/* ══ EYEBROW ══ */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ══ POLICY PAGE TEMPLATE ══ */

/* ── Page Header ── */
.page-header {
  margin-top: 68px;
  padding: 56px 0 44px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(74, 128, 212, .2) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .18s;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, .75);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, .25);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, .7);
}

.partner-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.partner-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.partner-logo-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.page-header-meta {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

/* ── Policy Layout ── */
.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
  padding: 60px 0 100px;
}

/* ── TOC Sidebar ── */
.toc {
  position: sticky;
  top: 88px;
}

.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

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

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: all .15s;
  border-left: 2px solid transparent;
}

.toc a:hover {
  color: var(--black);
  background: var(--gray-100);
}

.toc a.active {
  color: var(--pink);
  border-left: 1px solid var(--pink);
  background: var(--pink-bg);
}

.toc-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 10px 0;
}

.toc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s;
}

.toc-back:hover {
  color: var(--black);
}

.toc-back svg {
  width: 14px;
  height: 14px;
}

/* ── Policy Content ── */
.policy-content {
  min-width: 0;
}

.policy-intro {
  padding: 24px 28px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.policy-intro p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--blue);
}

.policy-intro strong {
  font-weight: 600;
}

.policy-section {
  margin-bottom: 48px;
  scroll-margin-top: 88px;
}

.policy-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--pink-bg);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.policy-section p {
  font-size: 15px;
  line-height: 1.78;
  color: #374151;
  margin-bottom: 12px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section .clause {
  margin: 30px 0;
}

.policy-section .clause p {
  font-size: 14px;
}

.policy-section .clause .sub-clause {
  padding-left: 20px;
  border-left: 1px solid var(--gray-200);
  margin: 8px 0;
}

.policy-section .clause .sub-clause p {
  font-size: 14px;
}

.policy-section ul {
  margin: 10px 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-section ul li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  padding-left: 4px;
}

.policy-section ol {
  margin: 10px 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style-type: lower-alpha;
}

.policy-section ol li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  padding-left: 4px;
}

.clause-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 4px;
  display: block;
}

/* ── Contact Card ── */
.contact-card {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #fff;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.contact-card .partner-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 14px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail svg {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
  margin-top: 1px;
  flex-shrink: 0;
}

.contact-detail span {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5;
}

.contact-detail a {
  color: var(--blue-light);
  text-decoration: none;
}

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



/* ── Logo Marquee ── */
.logo-wall {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 36px 0;
  overflow: hidden;
}

.logo-wall-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
}

/* Marquee track */
.logo-marquee {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Each logo item */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 48px;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.logo-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ── Responsive (Policy Pages) ── */
@media (max-width: 900px) {
  .wrap {
    padding: 0 32px;
  }

  .nav-inner {
    padding: 0 32px;
  }

  .nav-right .login {
    display: none;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc {
    position: static;
    margin-bottom: 36px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 20px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-brand p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .partner-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  footer {
    padding: 52px 0 32px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .foot-legal {
    justify-content: center;
  }
}