/* Yaan Static Legal, Informational & App Portal Stylesheet */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #f1f5f9;
  --navy-deep: #09111f;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --brand: #c0392b;
  --brand-dark: #992d22;
  --brand-soft: #fdecea;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: #fef3c7;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --primary: #0f4c81;
  --primary-hover: #0a365c;
  --primary-soft: #e0f2fe;
  --success: #065f46;
  --success-bg: #d1fae5;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 22px 45px -12px rgba(9, 17, 31, 0.28);
  --max-width: 1140px;
}

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

html {
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background-color: var(--surface-tint);
  color: var(--navy);
  padding: 0.18em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 17, 31, 0.96);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-bottom: 2px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 20px rgba(9, 17, 31, 0.2);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #fde68a;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.42rem 0.72rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.site-nav a[aria-current="page"] {
  background-color: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(192, 57, 43, 0.28), transparent 44%),
    radial-gradient(circle at 12% 85%, rgba(245, 158, 11, 0.16), transparent 40%),
    linear-gradient(135deg, var(--navy-deep) 0%, #11223a 58%, #162e4c 100%);
  color: #ffffff;
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid #1e293b;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.95fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.06rem;
  color: #dbe4f0;
  max-width: 58ch;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Showcase Panel inside Hero */
.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fde68a;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a7f3d0;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.panel-rows {
  display: grid;
  gap: 0.75rem;
}

.panel-row {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.panel-row strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.panel-row span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.panel-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background-color: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Subpage Banner Header */
.page-header {
  background:
    radial-gradient(circle at 90% 25%, rgba(192, 57, 43, 0.22), transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, #152b46 100%);
  color: #ffffff;
  padding: 2.35rem 0 2.15rem;
  border-bottom: 1px solid #1e293b;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.breadcrumb a {
  color: #fde68a;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-header h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.page-meta {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.94rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background-color: #fbbf24;
  color: var(--navy-deep);
}

.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
}

.btn-brand:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-navy {
  background-color: var(--navy);
  color: #ffffff;
}

.btn-navy:hover {
  background-color: var(--navy-soft);
  color: #ffffff;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline {
  background-color: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--surface-tint);
  border-color: var(--navy);
  color: var(--navy);
}

/* Main Content */
main {
  padding: 2.65rem 0 3.75rem;
}

.section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.section-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 68ch;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: var(--navy);
  line-height: 1.3;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

/* App Download Showcase Cards */
.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-md);
}

.app-card-partner {
  border-top-color: var(--navy);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(192, 57, 43, 0.25);
}

.app-card-partner .app-icon-tile {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.role-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--primary-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.app-features {
  margin: 0.85rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.app-features li {
  margin-bottom: 0.45rem;
}

.package-box {
  background-color: var(--surface-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  margin-top: auto;
}

.package-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.download-actions .btn {
  flex: 1 1 200px;
}

.apk-note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Icon Header inside Policy Cards */
.policy-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge-amber {
  background-color: var(--amber-soft);
  color: var(--amber-deep);
}

.icon-badge-red {
  background-color: var(--brand-soft);
  color: var(--brand);
}

.icon-badge svg {
  width: 20px;
  height: 20px;
}

.policy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Callout Banners */
.callout {
  background-color: var(--surface);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-sm);
}

.callout-warn {
  border-left-color: var(--amber);
  background-color: #fffbeb;
}

.callout-success {
  border-left-color: var(--success);
  background-color: #ecfdf5;
}

.callout h2,
.callout h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  color: var(--navy);
}

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

/* Legal Document Layout */
.doc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 5.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.toc-sidebar h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.toc-sidebar ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.87rem;
}

.toc-sidebar li {
  margin-bottom: 0.35rem;
}

.toc-sidebar a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.toc-sidebar a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.doc-card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 82ch;
}

.doc-card h2 {
  margin: 2rem 0 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  scroll-margin-top: 5.5rem;
}

.doc-card section:first-of-type h2,
.doc-card > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-card h3 {
  margin: 1.3rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy-soft);
}

.doc-card ul,
.doc-card ol {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.doc-card li {
  margin-bottom: 0.42rem;
}

/* Badges inside tables/docs */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.badge-danger {
  background-color: var(--brand-soft);
  color: var(--brand-dark);
}

.badge-neutral {
  background-color: var(--surface-tint);
  color: var(--navy);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background-color: var(--surface);
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  background-color: var(--surface-soft);
  color: var(--navy);
  font-weight: 700;
}

/* Contact List */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.info-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, #17304d 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.cta-strip h2 {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-size: 1.35rem;
}

.cta-strip p {
  margin: 0;
  color: #cbd5e1;
  max-width: 58ch;
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: #cbd5e1;
  padding: 2.75rem 0 2rem;
  border-top: 3px solid var(--amber);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.85rem;
  margin-bottom: 1.85rem;
}

.footer-col h2 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.footer-col p {
  margin: 0 0 0.45rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.42rem;
}

.site-footer a {
  color: #fde68a;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hero-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
  }

  .toc-sidebar ol {
    columns: 2;
    column-gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.4rem 0 2.6rem;
  }

  .doc-card {
    padding: 1.25rem;
  }

  .toc-sidebar ol {
    columns: 1;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 0.36rem 0.55rem;
  }

  .cta-strip {
    padding: 1.35rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc-sidebar,
  .hero-actions,
  .breadcrumb {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
