/* ============================================================
   Bankonbet Rights Management Office — Global Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e1e1e;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a56db; text-decoration: none; transition: color .2s; }
a:hover { color: #0f3d9e; }

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

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Top Legal Bar ---------- */
.top-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: .8rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img { width: 28px; height: 28px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #0f172a; margin: 5px 0; transition: .3s; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: #334155;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1a56db;
  border-bottom-color: #1a56db;
}

/* ---------- Hero (Split) ---------- */
.hero {
  padding: 64px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.hero .container {
  display: flex;
  gap: 48px;
  align-items: center;
}

.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-text p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 540px;
}

.hero-panel {
  flex: 0 0 340px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px 24px;
}

.hero-panel h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: 16px;
}

.hero-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
}

.hero-panel dt {
  font-weight: 600;
  font-size: .875rem;
  color: #334155;
}

.hero-panel dd {
  font-size: .875rem;
  color: #475569;
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1rem;
  color: #475569;
  max-width: 640px;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: .95rem;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 640px;
}

/* ---------- Cards Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow .2s;
}

.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }

.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.card p {
  font-size: .875rem;
  color: #475569;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 24px; height: 24px;
  background: #1a56db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: .875rem;
  color: #475569;
}

/* ---------- Confirmation / Statement Blocks ---------- */
.statement-block {
  background: #ffffff;
  border-left: 4px solid #1a56db;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.statement-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.statement-block p {
  font-size: .925rem;
  color: #334155;
}

/* ---------- Content Prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; color: #334155; }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: #334155; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-left: 3px solid #1a56db;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f1f5f9;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #334155;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  color: #1e1e1e;
  background: #ffffff;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn-primary { background: #1a56db; color: #ffffff; }
.btn-primary:hover { background: #1545b5; }

.form-notice {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 12px;
}

/* ---------- Warning / Legal Notice ---------- */
.legal-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-warning p {
  color: #991b1b;
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Counter-notice ---------- */
.counter-notice {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}

.counter-notice h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.counter-notice p, .counter-notice li {
  font-size: .9rem;
  color: #334155;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: .85rem;
}

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

.footer-col h4 {
  color: #e2e8f0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-bottom p { margin: 0; }

/* ---------- Last Updated ---------- */
.last-updated {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero .container { flex-direction: column; }
  .hero-panel { flex: 1 1 auto; width: 100%; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.5rem; }
}
