/* ============================================================
   LEGAL-NEW-LIKE.CSS
   Page-specific styles for legal/ — new visual language.
   Vars bridge to rrebellnexus.css globals — NO hardcoded hex
   for brand colours. Light theme fully covered below.
============================================================ */

/* === VAR BRIDGE: prototype → rrebellnexus.css globals ===== */
:root,
[data-theme="dark"] {
  --red:         var(--primary-accent);
  --rose:        var(--secondary-accent);
  --ember:       var(--tertiary-accent);
  --red-rgb:     var(--primary-accent-rgb);
  --red-glow:    var(--glow-color);
  --red-faint:   rgba(var(--primary-accent-rgb), 0.08);
  --red-border:  rgba(var(--primary-accent-rgb), 0.20);

  --text-1:  var(--text-primary);
  --text-2:  var(--text-secondary);
  --text-3:  var(--text-tertiary);
  --text-4:  #3A2828;

  --bg-0:      var(--bg-base);
  --bg-1:      var(--bg-surface);
  --bg-2:      var(--bg-elevated);
  --bg-3:      #130A0A;
  --bg-card:   var(--bg-elevated);
  --bg-card-h: #190D0D;
  --bg-overlay: rgba(5, 2, 2, 0.85);

  --border:      var(--border-color);
  --shadow-red:  0 0 48px var(--glow-color);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.7);

  /* utility constants */
  --btn-text: #ffffff;
}

/* === LIGHT THEME EXTENSIONS (page-specific vars) =========== */
[data-theme="light"] {
  --red-faint:   rgba(var(--primary-accent-rgb), 0.05);
  --red-border:  rgba(var(--primary-accent-rgb), 0.15);

  --text-4:      #C0AEAE;

  --bg-3:        #FFECEC;
  --bg-card:     #FFFFFF;
  --bg-card-h:   #FFF0F0;
  --bg-overlay:  rgba(255, 250, 250, 0.9);

  --shadow-red:  0 0 48px rgba(var(--primary-accent-rgb), 0.10);
  --shadow-card: 0 8px 32px rgba(26, 8, 8, 0.10);
}

/* === CONTAINER ============================================= */
.lg2-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO — Video ========================================== */
.lg2-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  margin-top: var(--header-height, 64px);
}

.lg2-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.02);
  animation: lg2ZoomOut 10s ease-out forwards;
}
@keyframes lg2ZoomOut { to { transform: scale(1); } }

.lg2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg,
    rgba(var(--red-rgb), 0.15) 0%,
    transparent 40%,
    var(--bg-overlay) 80%,
    var(--bg-0) 100%
  );
}

.lg2-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
  animation: lg2SlideUp 1s 0.3s both;
}
@keyframes lg2SlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lg2-hero-kicker {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.lg2-hero-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.lg2-hero-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(40px, 12vw, 80px);
  line-height: 0.95;
  color: var(--text-1);
  margin-bottom: 12px;
  word-break: break-word;
}
.lg2-hero-title em {
  color: var(--red);
  font-style: italic;
  font-size: 0.9em;
}

.lg2-hero-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 20px;
}

.lg2-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* === BUTTONS =============================================== */
.lg2-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
@media (max-width: 400px) {
  .lg2-btn { white-space: normal; text-align: center; }
}
.lg2-btn-primary {
  background: var(--red);
  color: var(--btn-text);
  box-shadow: 0 4px 24px rgba(var(--red-rgb), 0.3);
}
.lg2-btn-primary:hover {
  background: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--red-rgb), 0.4);
}
.lg2-btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.lg2-btn-outline:hover {
  border-color: var(--red);
  color: var(--text-1);
  background: var(--red-faint);
  transform: translateY(-2px);
}

/* === VIDEO GRID ============================================ */
.lg2-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 640px) { .lg2-video-grid { grid-template-columns: repeat(2, 1fr); } }

.lg2-video-card {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.lg2-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.5s, transform 0.5s;
}
.lg2-video-card:hover video { filter: brightness(0.9); transform: scale(1.03); }

.lg2-video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 16px;
}
.lg2-video-placeholder svg {
  width: 40px;
  height: 40px;
  fill: rgba(var(--red-rgb), 0.2);
}

.lg2-video-label {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-accent), sans-serif;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* === IMAGE GRID ============================================ */
.lg2-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px)  { .lg2-image-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .lg2-image-grid { grid-template-columns: repeat(5, 1fr); } }

.lg2-image-item {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.lg2-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.lg2-image-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1.05);
}
.lg2-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 10px;
  background: linear-gradient(to top, var(--bg-overlay), transparent);
  font-family: var(--font-accent), sans-serif;
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}
.lg2-image-item:hover .lg2-image-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION =============================================== */
.lg2-section { margin: 64px 0; scroll-margin-top: var(--header-height, 64px); }
.lg2-section-header { margin-bottom: 32px; }
.lg2-section-eye {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.lg2-section-eye span { color: var(--text-4); }
.lg2-section-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 12px;
  word-break: break-word;
}
.lg2-section-title em { color: var(--red); font-style: italic; }
.lg2-section-rule {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
  margin-bottom: 20px;
}

/* === DIVIDER =============================================== */
.lg2-divider {
  display: flex;
  align-items: center;
  margin: 48px 0;
}
.lg2-divider-line { flex: 1; height: 1px; background: var(--border); }
.lg2-divider-text {
  padding: 0 20px;
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--text-4);
  white-space: nowrap;
  text-transform: uppercase;
}

/* === LEGAL GRID ============================================ */
.lg2-legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 480px) { .lg2-legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .lg2-legal-grid { grid-template-columns: repeat(3, 1fr); } }

.lg2-legal-card {
  background: var(--bg-card);
  padding: 28px 20px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
}
.lg2-legal-card:hover {
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.lg2-legal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}
.lg2-legal-card:hover::before { background: var(--red); }

.lg2-legal-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.lg2-legal-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 20px;
  color: var(--text-1);
  margin-bottom: 8px;
  word-break: break-word;
}
.lg2-legal-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  word-break: break-word;
}
.lg2-legal-badge {
  font-family: var(--font-accent), sans-serif;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--red);
  border: 1px solid var(--red-border);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Wide card for detailed legal text */
.lg2-legal-wide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  padding: 32px 24px;
  border-radius: 0 0 8px 8px;
  margin: 32px 0;
}
@media (min-width: 640px) { .lg2-legal-wide { padding: 40px 32px; } }

.lg2-legal-wide h3 {
  font-family: var(--font-heading), serif;
  font-size: 22px;
  color: var(--text-1);
  margin-bottom: 16px;
  word-break: break-word;
}
.lg2-legal-wide h3 + h3,
.lg2-legal-wide p + h3 { margin-top: 32px; }

.lg2-legal-wide p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.2em;
  word-break: break-word;
}
.lg2-legal-wide strong { color: var(--text-1); font-weight: 500; }
.lg2-legal-wide ul,
.lg2-legal-wide ol {
  margin: 16px 0 16px 20px;
  color: var(--text-2);
}
.lg2-legal-wide li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.lg2-legal-wide a { color: var(--red); text-decoration: underline; }

/* Compact info card (inline/aside blocks) */
.lg2-compact-card {
  margin-top: 24px;
  background: var(--bg-card);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lg2-compact-card h4 {
  font-family: var(--font-heading), serif;
  font-size: 18px;
  color: var(--text-1);
  margin-bottom: 8px;
}
.lg2-compact-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.lg2-compact-card a { color: var(--red); text-decoration: underline; }

/* === STATEMENT / CALLOUT =================================== */
.lg2-statement {
  border-left: 3px solid var(--red);
  background: var(--red-faint);
  padding: 24px 20px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.lg2-statement p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-word;
}
.lg2-statement p + p { margin-top: 16px; }
.lg2-statement strong { color: var(--text-1); }
.lg2-statement a { color: var(--red); text-decoration: underline; }

/* === TAGS ================================================== */
.lg2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}
.lg2-tag {
  font-family: var(--font-accent), sans-serif;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 2px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}
.lg2-tag:hover {
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-faint);
}

/* === SOUNDCLOUD ============================================ */
.lg2-sc-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin: 40px 0;
}
.lg2-sc-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lg2-sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: lg2Pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes lg2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.lg2-sc-label {
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.lg2-sc-title {
  font-family: var(--font-heading), serif;
  font-style: italic;
  color: var(--red);
  margin-left: auto;
  font-size: 14px;
}
.lg2-sc-wrapper iframe { display: block; }

/* === QUOTE ================================================= */
.lg2-quote {
  text-align: center;
  padding: 48px 0;
  position: relative;
}
.lg2-quote::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.lg2-quote blockquote {
  font-family: var(--font-heading), serif;
  font-style: italic;
  font-size: clamp(22px, 6vw, 40px);
  line-height: 1.2;
  color: var(--text-1);
  max-width: 600px;
  margin: 0 auto 12px;
  position: relative;
  padding: 0 16px;
  word-break: break-word;
}
.lg2-quote blockquote em { color: var(--red); font-style: normal; }
.lg2-quote cite {
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--rose);
}

/* === ANCHOR (scroll-to target) ============================= */
.lg2-anchor { scroll-margin-top: var(--header-height, 64px); }

/* === ULTRA SMALL (<360px) ================================== */
@media (max-width: 360px) {
  .lg2-container { padding: 0 12px; }
  .lg2-hero-content { padding: 0 12px 24px; }
  .lg2-hero-title { font-size: 36px; }
  .lg2-hero-kicker { font-size: 8px; }
  .lg2-btn { padding: 10px 16px; font-size: 8px; }
  .lg2-legal-card { padding: 20px 16px; min-height: auto; }
  .lg2-legal-icon { font-size: 28px; }
  .lg2-legal-card h3 { font-size: 18px; }
  .lg2-legal-wide { padding: 24px 16px; }
  .lg2-legal-wide h3 { font-size: 18px; }
  .lg2-section-title { font-size: 26px; }
  .lg2-divider-text { font-size: 7px; padding: 0 10px; }
}
