/* BidFive legal/support static site — single shared stylesheet.
 * Pure CSS, no JS framework, no build step. Designed to load fast and
 * render identically in Apple's review tooling and any browser. */

:root {
  --navy:        #0e2461;
  --navy-deep:   #040a1f;
  --navy-card:   #f8fafd;
  --gold:        #b58c2a;
  --gold-light:  #e0b440;
  --burgundy:    #a8262a;
  --text:        #1c1c1e;
  --text-soft:   #5a6273;
  --rule:        #e2e6ee;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
               "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  background: #fbfbfd;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Header */
header.page-header {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 18px;
}
.brand-name {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 1px;
}

h1.page-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.page-meta {
  font-size: 13px;
  color: var(--text-soft);
}

/* Lang switch (top-right) */
.lang-switch {
  float: right;
  margin-top: -28px;
  font-size: 13px;
}
.lang-switch a {
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 6px;
}
.lang-switch a.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Section cards */
section.legal-intro {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
section.legal-section {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
section.legal-section.highlight {
  border-left: 4px solid var(--burgundy);
  background: #fffaf0;
}
h2.section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--navy);
  margin: 0 0 12px 0;
}
section.legal-section.highlight h2.section-title {
  color: var(--burgundy);
}

.section-body {
  color: var(--text);
  white-space: pre-wrap;          /* honours \n in i18n strings */
  font-size: 15px;
  line-height: 1.8;
}
.section-body, .section-body p {
  margin: 0;
}

/* Footer */
footer.page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}
footer.page-footer a {
  color: var(--navy);
  text-decoration: none;
  margin: 0 8px;
}
footer.page-footer a:hover { text-decoration: underline; }

/* Support page specific */
.contact-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.contact-grid dt { font-weight: bold; color: var(--navy); }
.contact-grid dd { margin: 0; }
.contact-grid dd a { color: var(--navy); }

.faq-list dt {
  font-weight: bold;
  color: var(--navy);
  margin-top: 18px;
  font-size: 15px;
}
.faq-list dd {
  margin: 6px 0 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* Anti-gambling banner — used on support page */
.no-gambling-banner {
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e0 100%);
  border: 2px solid var(--burgundy);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #4a1416;
}
.no-gambling-banner strong {
  color: var(--burgundy);
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 20px 16px 60px; }
  h1.page-title { font-size: 22px; }
  h2.section-title { font-size: 16px; }
  .lang-switch { float: none; margin-top: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 4px; }
  .contact-grid dt { margin-top: 10px; }
}

/* Print-friendly (in case Apple prints to PDF for archives) */
@media print {
  body { background: white; color: black; font-size: 12pt; }
  .container { max-width: none; padding: 0; }
  section.legal-section, section.legal-intro { border: none; box-shadow: none; padding: 0 0 12px 0; }
  .lang-switch { display: none; }
  footer.page-footer { display: none; }
}
