.legal { color: var(--white); }
.legal section { height: auto; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.legal .hero { position: relative; height: auto; padding: 220px 0 130px; overflow: hidden; }
.legal .hero .backgrounds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.legal .hero .backgrounds .background { position: absolute; width: 100%; height: 100%; background: radial-gradient(ellipse at 75% 40%, rgb(255 84 7 / 21%) 0%, transparent 60%), linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%) }
.legal.privacy-policy .hero .backgrounds .background { background: radial-gradient(ellipse at 75% 40%, rgb(128 96 255 / 21%) 0%, transparent 60%), linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%)}
.legal.terms-of-use .hero .backgrounds .background { background: radial-gradient(ellipse at 75% 40%, rgb(7 155 255 / 21%) 0%, transparent 60%), linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%)}
.legal .hero .backgrounds .pattern { mix-blend-mode: overlay; opacity: 0.5; }

.legal .hero .content { position: relative; z-index: 1; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.legal .hero .content h1 { font-size: 64px; font-weight: 300; line-height: 115%; letter-spacing: 0.5px; margin-top: 18px; }
.legal .hero .content .meta { font-size: 13px; font-family: var(--manrope); font-weight: 400; letter-spacing: 0.8px; text-transform: uppercase; margin-top: 6px; }

/* ── Legal Content ─────────────────────────────────────────────────────────── */
.legal .legal-content { padding: 90px 0 180px; }
.legal .legal-content .inner { max-width: 860px; margin: 0 auto; }
.legal .legal-content .intro-text { font-size: 18px; line-height: 180%; margin-bottom: 0; font-weight: 300; padding-bottom: 60px; }
.legal .legal-content h2 { font-size: 26px; font-weight: 400; line-height: 130%; letter-spacing: 0.3px; margin-top: 60px; margin-bottom: 22px; padding-top: 50px; position: relative; }
.legal .legal-content h2::before{ content: ""; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(255, 84, 7, 0.5) 0%, transparent 60%); }
.legal .legal-content h2::after { display: none; }
.legal .legal-content h3 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; background: none; -webkit-text-fill-color: #555; margin-top: 32px; margin-bottom: 12px; }
.legal .legal-content p { font-size: 16px; line-height: 185%; letter-spacing: 0.1px; margin-bottom: 16px; font-weight: 300; }
.legal .legal-content ul,
.legal .legal-content ol { margin: 14px 0 22px 26px; }
.legal .legal-content ul li,
.legal .legal-content ol li { font-size: 16px; line-height: 175%; margin-bottom: 10px; font-family: var(--manrope); font-weight: 300; }
.legal .legal-content ul li { list-style-type: disc; }
.legal .legal-content ol li { list-style-type: decimal; }
.legal .legal-content a { color: var(--orange); text-decoration: none; transition: opacity 0.2s; }
.legal .legal-content a:hover { opacity: 0.75; }
.legal .legal-content strong { font-weight: 600; }

/* ── Legal Index (page-legal.php) ──────────────────────────────────────────── */
.legal .legal-index { padding: 90px 0 180px; }
.legal .legal-index .inner { max-width: 860px; margin: 0 auto; }
.legal .legal-index .intro-text { font-size: 18px; line-height: 180%; font-weight: 300; max-width: 660px; margin-bottom: 70px; }
.legal .legal-index .doc-list { display: flex; flex-direction: column; gap: 2px; }
.legal .legal-index .doc-item { display: flex; align-items: center; justify-content: space-between; padding: 36px 0; border-bottom: 1px solid #1a1a1a; text-decoration: none; transition: all 0.3s ease; }
.legal .legal-index .doc-item:first-child { border-top: 1px solid #1a1a1a; }
.legal .legal-index .doc-item:hover { padding-left: 12px; }
.legal .legal-index .doc-item .doc-info {}
.legal .legal-index .doc-item .doc-info h4 { font-size: 22px; font-weight: 400; margin-bottom: 6px; transition: color 0.3s; }
.legal .legal-index .doc-item:hover .doc-info h4 { color: var(--orange); }
.legal .legal-index .doc-item .doc-info span { font-size: 13px; font-family: var(--manrope); text-transform: uppercase; letter-spacing: 1.2px; }
.legal .legal-index .doc-item .arrow { width: 40px; height: 40px; border: 1px solid #2a2a2a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.3s ease; flex-shrink: 0; }
.legal .legal-index .doc-item:hover .arrow { border-color: var(--orange); color: var(--orange); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .legal .hero { padding: 180px 0 100px; }
    .legal .hero .content h1 { font-size: 48px; }
}

@media screen and (max-width: 767px) {
    .legal .hero { padding: 150px 0 80px; }
    .legal .hero .content h1 { font-size: 34px; }
    .legal .legal-content h2 { font-size: 22px; }
    .legal .legal-content .intro-text { font-size: 16px; }
    .legal .legal-index .doc-item .doc-info h4 { font-size: 18px; }
}
