/* ═══════════════════════════════════════════════════════════════════════
   TalentRise Legal Pages — Front-end Styles
   Matches the TalentRise theme design tokens exactly.
   ═══════════════════════════════════════════════════════════════════════*/

/* ── Design Tokens (mirrors theme variables) ─────────────────────────── */
:root {
  --trlp-bg:          #0A0A0F;
  --trlp-primary:     #FFD700;
  --trlp-secondary:   #7C3AED;
  --trlp-surface:     #13131A;
  --trlp-surface-2:   #1C1C26;
  --trlp-text:        #FFFFFF;
  --trlp-text-muted:  #8888AA;
  --trlp-border:      #2A2A3A;
  --trlp-danger:      #EF4444;
  --trlp-success:     #22C55E;
  --trlp-warning:     #F59E0B;
  --trlp-radius-sm:   6px;
  --trlp-radius-md:   12px;
  --trlp-radius-lg:   20px;
  --trlp-font-body:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --trlp-font-heading:'Clash Display', 'DM Sans', sans-serif;
}

/* ── Legal Page Container ───────────────────────────────────────────── */
.trlp-legal-page {
  font-family:  var(--trlp-font-body);
  color:        var(--trlp-text);
  line-height:  1.75;
  font-size:    15px;
  max-width:    820px;
}

/* ── Page Title (h1) ────────────────────────────────────────────────── */
.trlp-legal-page h1.trlp-page-title {
  font-family:  var(--trlp-font-heading);
  font-size:    clamp(24px, 4vw, 36px);
  font-weight:  700;
  color:        var(--trlp-primary);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--trlp-border);
}

/* ── Section Headings ───────────────────────────────────────────────── */
.trlp-legal-page h2 {
  font-family:  var(--trlp-font-heading);
  font-size:    clamp(17px, 2.5vw, 22px);
  font-weight:  600;
  color:        var(--trlp-text);
  margin-top:   36px;
  margin-bottom: 12px;
  padding-left:  12px;
  border-left:   3px solid var(--trlp-secondary);
}

.trlp-legal-page h3 {
  font-size:    16px;
  font-weight:  600;
  color:        var(--trlp-primary);
  margin-top:   24px;
  margin-bottom: 8px;
}

/* ── Body Text ──────────────────────────────────────────────────────── */
.trlp-legal-page p {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
}

/* ── Lists ──────────────────────────────────────────────────────────── */
.trlp-legal-page ul,
.trlp-legal-page ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.trlp-legal-page li {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.82);
}
.trlp-legal-page li strong { color: var(--trlp-text); }

/* ── Links ──────────────────────────────────────────────────────────── */
.trlp-legal-page a {
  color: var(--trlp-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255,215,0,0.3);
  transition: text-decoration-color 0.2s;
}
.trlp-legal-page a:hover {
  text-decoration-color: var(--trlp-primary);
}

/* ── Effective Date ─────────────────────────────────────────────────── */
.trlp-legal-page .trlp-effective {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-radius: var(--trlp-radius-sm);
  padding:      8px 14px;
  font-size:    12px;
  color:        var(--trlp-text-muted);
  display:      inline-block;
  margin-bottom: 24px;
}

/* ── Contact Block ──────────────────────────────────────────────────── */
.trlp-legal-page .trlp-contact-block {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-left:  4px solid var(--trlp-primary);
  border-radius: var(--trlp-radius-md);
  padding:      20px 24px;
  margin-top:   24px;
}
.trlp-legal-page .trlp-contact-block p { margin: 0; }

/* ── Callouts ───────────────────────────────────────────────────────── */
.trlp-legal-page .trlp-callout {
  border-radius: var(--trlp-radius-md);
  padding:      16px 20px;
  margin:       20px 0;
  font-size:    14px;
  line-height:  1.6;
}
.trlp-callout--warning {
  background:   rgba(245,158,11,0.12);
  border:       1px solid rgba(245,158,11,0.35);
  color:        #FCD34D;
}
.trlp-callout--info {
  background:   rgba(124,58,237,0.12);
  border:       1px solid rgba(124,58,237,0.35);
  color:        #C4B5FD;
}

/* ── DMCA Agent Block ───────────────────────────────────────────────── */
.trlp-legal-page .trlp-dmca-agent {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-radius: var(--trlp-radius-md);
  padding:      18px 22px;
  margin:       16px 0;
  font-family:  monospace;
  font-size:    14px;
}
.trlp-legal-page code {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-radius: 4px;
  padding:      2px 6px;
  font-size:    13px;
  color:        var(--trlp-primary);
}

/* ── Tables (Cookie Policy) ─────────────────────────────────────────── */
.trlp-legal-page .trlp-cookie-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--trlp-radius-md);
}
.trlp-legal-page .trlp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 540px;
}
.trlp-legal-page .trlp-table th {
  background:   var(--trlp-secondary);
  color:        #fff;
  padding:      10px 14px;
  text-align:   left;
  font-weight:  600;
  font-size:    12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trlp-legal-page .trlp-table td {
  padding:      10px 14px;
  border-bottom: 1px solid var(--trlp-border);
  color:        rgba(255,255,255,0.82);
  vertical-align: top;
}
.trlp-legal-page .trlp-table tr:nth-child(even) td {
  background: var(--trlp-surface-2);
}

/* ── About Page: Hero ───────────────────────────────────────────────── */
.trlp-hero-about {
  text-align:   center;
  background:   linear-gradient(135deg, rgba(124,58,237,0.25), rgba(255,215,0,0.08));
  border:       1px solid var(--trlp-border);
  border-radius: var(--trlp-radius-lg);
  padding:      40px 32px;
  margin-bottom: 36px;
}
.trlp-hero-about__icon { font-size: 48px; margin-bottom: 12px; }
.trlp-hero-about h2 {
  font-family:  var(--trlp-font-heading);
  font-size:    clamp(20px, 3.5vw, 30px);
  font-weight:  700;
  color:        var(--trlp-primary);
  margin:       0 0 8px;
  border:       none;
  padding:      0;
}
.trlp-hero-about p {
  color:        var(--trlp-text-muted);
  font-size:    16px;
  margin:       0;
}

/* ── About Page: Feature Grid ───────────────────────────────────────── */
.trlp-feature-grid {
  display:        grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:            16px;
  margin:         24px 0 32px;
}
.trlp-feature-card {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-radius: var(--trlp-radius-md);
  padding:      22px;
  transition:   border-color 0.2s, transform 0.2s;
}
.trlp-feature-card:hover {
  border-color: var(--trlp-secondary);
  transform:    translateY(-2px);
}
.trlp-feature-card__icon { font-size: 28px; margin-bottom: 10px; }
.trlp-feature-card h3 {
  font-size:    15px;
  font-weight:  700;
  color:        var(--trlp-text);
  margin:       0 0 8px;
}
.trlp-feature-card p {
  font-size:    13px;
  color:        var(--trlp-text-muted);
  margin:       0;
}

/* ── Contact Page Layout ────────────────────────────────────────────── */
.trlp-contact-grid {
  display:      grid;
  grid-template-columns: 1fr 1.5fr;
  gap:          32px;
  margin-top:   24px;
  align-items:  start;
}
@media (max-width: 680px) {
  .trlp-contact-grid { grid-template-columns: 1fr; }
}

.trlp-contact-info__item {
  display:      flex;
  gap:          14px;
  align-items:  flex-start;
  padding:      16px 0;
  border-bottom: 1px solid var(--trlp-border);
}
.trlp-contact-info__item:last-child { border-bottom: none; }
.trlp-contact-info__icon {
  font-size:    22px;
  flex-shrink:  0;
  margin-top:   2px;
}
.trlp-contact-info__item strong {
  display:      block;
  font-size:    12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color:        var(--trlp-text-muted);
  margin-bottom: 2px;
}

/* ── Contact Form ───────────────────────────────────────────────────── */
.trlp-form { width: 100%; }

.trlp-form__row--two-col {
  display:      grid;
  grid-template-columns: 1fr 1fr;
  gap:          16px;
}
@media (max-width: 500px) {
  .trlp-form__row--two-col { grid-template-columns: 1fr; }
}

.trlp-form__group {
  display:      flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.trlp-form__label {
  font-size:    12px;
  font-weight:  600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color:        var(--trlp-text-muted);
  margin-bottom: 6px;
}
.trlp-form__required { color: var(--trlp-danger); margin-left: 2px; }

.trlp-form__input {
  background:   var(--trlp-surface-2);
  border:       1px solid var(--trlp-border);
  border-radius: var(--trlp-radius-sm);
  color:        var(--trlp-text);
  font-family:  var(--trlp-font-body);
  font-size:    14px;
  padding:      10px 14px;
  transition:   border-color 0.2s, box-shadow 0.2s;
  width:        100%;
  -webkit-appearance: none;
}
.trlp-form__input:focus {
  outline:      none;
  border-color: var(--trlp-secondary);
  box-shadow:   0 0 0 3px rgba(124,58,237,0.2);
}
.trlp-form__input::placeholder { color: var(--trlp-text-muted); }
.trlp-form__select { cursor: pointer; }
.trlp-form__textarea { resize: vertical; min-height: 130px; }

.trlp-form__footer {
  display:      flex;
  align-items:  center;
  justify-content: space-between;
  gap:          16px;
  margin-top:   8px;
  flex-wrap:    wrap;
}
.trlp-form__consent {
  font-size:    12px;
  color:        var(--trlp-text-muted);
  margin:       0;
  flex:         1;
}
.trlp-form__consent a { color: var(--trlp-primary); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.trlp-btn {
  display:      inline-flex;
  align-items:  center;
  gap:          6px;
  padding:      11px 24px;
  border-radius: var(--trlp-radius-full, 9999px);
  font-family:  var(--trlp-font-body);
  font-size:    14px;
  font-weight:  600;
  cursor:       pointer;
  border:       none;
  transition:   opacity 0.2s, transform 0.15s;
  text-decoration: none;
  white-space:  nowrap;
}
.trlp-btn--primary {
  background:   var(--trlp-primary);
  color:        #0A0A0F;
}
.trlp-btn--primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Alert Messages ─────────────────────────────────────────────────── */
.trlp-alert {
  border-radius: var(--trlp-radius-md);
  padding:      14px 18px;
  margin-bottom: 20px;
  font-size:    14px;
  line-height:  1.5;
}
.trlp-alert--success {
  background:   rgba(34,197,94,0.12);
  border:       1px solid rgba(34,197,94,0.4);
  color:        #86EFAC;
}
.trlp-alert--error {
  background:   rgba(239,68,68,0.12);
  border:       1px solid rgba(239,68,68,0.35);
  color:        #FCA5A5;
}
.trlp-error-list {
  margin:       6px 0 0 18px;
  padding:      0;
}
.trlp-error-list li { margin: 4px 0; }

/* ── Page wrapper (matches .tr-main padding/layout) ─────────────────── */
.tr-page-content {
  width: 100%;
}
.tr-page-content__body {
  max-width: 820px;
}
