:root {
  --bg-main: #FFFFFF;
  --bg-secondary: #F4F6F8;
  --text-primary: #1A1D20;
  --text-muted: #68737D;
  --accent-silver: #A0AAB5;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --card-border: rgba(0,0,0,0.04);
  --btn-primary-bg: linear-gradient(135deg, #1A1D20 0%, #3A4148 100%);
  --radius: 16px;
}

html.dark-mode {
  --bg-main: #0D0F12;
  --bg-secondary: #16191D;
  --text-primary: #FFFFFF;
  --text-muted: #A0AAB5;
  --accent-silver: #4A525A;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --card-border: rgba(255,255,255,0.05);
  --btn-primary-bg: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.legal-container {
  max-width: 1200px;
  margin: clamp(30px, 5vw, 60px) auto;
  padding: 0 clamp(15px, 4vw, 30px);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vw, 50px);
}

.page-header {
  text-align: center;
}

.page-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 3vw, 1.1rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-box {
  background-color: var(--bg-main);
  padding: clamp(30px, 5vw, 50px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.legal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--btn-primary-bg);
}

.legal-box section {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--card-border);
}

.legal-box section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-box h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: var(--text-primary);
  margin: 0 0 15px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-box h3 i {
  color: var(--accent-silver);
  font-size: 1.1rem;
}

.legal-box p {
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-box a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.legal-box a:hover {
  color: var(--accent-silver);
  border-color: var(--accent-silver);
}

.legal-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.1s; }