/* ===== Legal Pages (Terms / Privacy) — Light Mode ===== */

/* ── Layout: hero section spacing ── */
.terms-hero-section {
  padding: 0;
}

.terms-hero-section .container {
  max-width: 100%;
}

/* ── Layout: glass section wrapper ── */
.terms-document {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Glass section wrapper */
:root:not([data-theme='dark']) .glass-section {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Document header */
:root:not([data-theme='dark']) .document-header {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

:root:not([data-theme='dark']) .document-header h2 {
  color: #0f172a !important;
}

:root:not([data-theme='dark']) .document-header p {
  color: #475569 !important;
}

/* Bento cards */
:root:not([data-theme='dark']) .bento-item {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme='dark']) .bento-item:hover {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

:root:not([data-theme='dark']) .bento-item h3 {
  color: #0f172a !important;
}

:root:not([data-theme='dark']) .bento-item p {
  color: #334155 !important;
}

/* Document content */
:root:not([data-theme='dark']) .document-content .bento-item {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

/* Button override */
:root:not([data-theme='dark']) .btn-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
}

:root:not([data-theme='dark']) .btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
}

/* ====================================================================
   Terms Rules Table (Jadval)
   ==================================================================== */
.terms-rules-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.terms-rules-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
}

.terms-rules-table td {
  padding: 13px 16px;
  vertical-align: middle;
}

.terms-rules-table .badge-warn-1,
.terms-rules-table .badge-warn-2,
.terms-rules-table .badge-danger,
.terms-rules-table .badge-permanent {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
}

/* Light mode table rules */
:root:not([data-theme='dark']) .terms-rules-table {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

:root:not([data-theme='dark']) .terms-rules-table thead tr {
  background: #f1f5f9;
}

:root:not([data-theme='dark']) .terms-rules-table th {
  color: #0f172a !important;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

:root:not([data-theme='dark']) .terms-rules-table tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

:root:not([data-theme='dark']) .terms-rules-table tr.row-even {
  background: #f8fafc;
}

:root:not([data-theme='dark']) .terms-rules-table td.col-violation {
  color: #0f172a !important;
  font-weight: 600;
}

:root:not([data-theme='dark']) .terms-rules-table td small {
  color: #64748b !important;
  font-weight: 400;
}

:root:not([data-theme='dark']) .terms-rules-table .badge-warn-1 {
  background: #fef3c7;
  color: #92400e !important;
  border: 1px solid #fde68a;
  font-weight: 700;
}

:root:not([data-theme='dark']) .terms-rules-table .badge-warn-2 {
  background: #ffedd5;
  color: #9a3412 !important;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

:root:not([data-theme='dark']) .terms-rules-table .badge-danger {
  background: #fee2e2;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
  font-weight: 700;
}

:root:not([data-theme='dark']) .terms-rules-table .badge-permanent {
  background: #1e293b;
  color: #ffffff !important;
  border: 1px solid #0f172a;
  font-weight: 800;
}

:root:not([data-theme='dark']) .terms-note-box {
  background: #fefce8 !important;
  border: 1px solid #fef08a !important;
  border-radius: 10px;
  padding: 12px 16px;
}

:root:not([data-theme='dark']) .terms-note-box p {
  color: #713f12 !important;
}

:root:not([data-theme='dark']) .terms-note-box strong {
  color: #a16207 !important;
}

/* ====================================================================
   Dark Mode Styles
   ==================================================================== */
:root[data-theme='dark'] .glass-section {
  background: rgba(30, 30, 35, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

:root[data-theme='dark'] .bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme='dark'] .terms-rules-table thead tr {
  background: rgba(239, 68, 68, 0.12);
}

:root[data-theme='dark'] .terms-rules-table th {
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .terms-rules-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme='dark'] .terms-rules-table tr.row-even {
  background: rgba(255, 255, 255, 0.02);
}

:root[data-theme='dark'] .terms-rules-table td.col-violation {
  color: #f1f5f9;
}

:root[data-theme='dark'] .terms-rules-table td small {
  color: #94a3b8;
}

:root[data-theme='dark'] .terms-rules-table .badge-warn-1 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

:root[data-theme='dark'] .terms-rules-table .badge-warn-2 {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-weight: 600;
}

:root[data-theme='dark'] .terms-rules-table .badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
}

:root[data-theme='dark'] .terms-rules-table .badge-permanent {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-weight: 700;
}

:root[data-theme='dark'] .terms-note-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

:root[data-theme='dark'] .terms-note-box p {
  color: #94a3b8;
}

:root[data-theme='dark'] .terms-note-box strong {
  color: #fbbf24;
}

