/* =====================================================
   legal-pages.css
   智匯流數位整合有限公司 (fastflow.tw) 法律頁面樣式
   與 index.html 一致的深色科技風格
   ===================================================== */

@charset "UTF-8";

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

:root {
  --navy: #0A1628;
  --navy-mid: #0F1E35;
  --navy-light: #162440;
  --blue: #2B8EFF;
  --blue-light: #5AAEFF;
  --cyan: #00D4C8;
  --cyan-dim: #00B4A9;
  --white: #F0F6FF;
  --white-dim: #B8C8DC;
  --muted: #6B7F99;
  --border: rgba(43, 142, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(0, 212, 200, 0.15);
  --r: 12px;
  --r-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, 'PingFang TC', 'Noto Sans TC', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 15px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.logo-text-main {
  line-height: 1.15;
}

.logo-text-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ── LEGAL HERO ── */
.legal-hero {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(43, 142, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 200, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 212, 200, 0.1);
  border: 1px solid rgba(0, 212, 200, 0.28);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.legal-hero p {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* ── LEGAL CONTAINER ── */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── SECTIONS ── */
.section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.section:hover {
  border-color: rgba(0, 212, 200, 0.28);
}

.section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 212, 200, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section p {
  font-size: 14.5px;
  color: var(--white-dim);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

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

.section a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── LEGAL LIST ── */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
}

.legal-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.75;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--cyan);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.75;
}

/* ── FOOTER ── */
footer {
  background: #060E1A;
  border-top: 1px solid var(--border);
  padding: 2.2rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--white-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .legal-hero {
    padding: 3.5rem 1.2rem 3rem;
  }

  .legal-container {
    padding: 2.5rem 1.2rem 4rem;
  }

  .section {
    padding: 1.4rem 1.2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 1rem;
  }
}