:root {
    --primary-color: #603AC4;
    --secondary-color: #613ac41c;
    --background-color: #FFFCF4;
    --text-color: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B4FE0 100%);
    color: var(--background-color);
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 15px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.terms-section {
    margin-bottom: 50px;
    padding: 40px;
    border-radius: 15px;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
    opacity: 1;
    }
}

.terms-section:nth-child(1) { animation-delay: 0.1s; }
.terms-section:nth-child(2) { animation-delay: 0.2s; }
.terms-section:nth-child(3) { animation-delay: 0.3s; }
.terms-section:nth-child(4) { animation-delay: 0.4s; }
.terms-section:nth-child(5) { animation-delay: 0.5s; }
.terms-section:nth-child(6) { animation-delay: 0.6s; }
.terms-section:nth-child(7) { animation-delay: 0.7s; }
.terms-section:nth-child(8) { animation-delay: 0.8s; }

.terms-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.terms-section h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.terms-section p, .terms-section li {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 15px;
}

.terms-section ul {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}

.terms-section strong {
    font-weight: 500;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B4FE0 100%);
    color: var(--background-color);
    text-align: center;
    padding: 50px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

footer p {
    position: relative;
    z-index: 1;
    color: var(--background-color);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-home:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.back-home svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-home:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    main { padding: 50px 20px; }
    .terms-section { padding: 30px 25px; margin-bottom: 35px; }
    header { padding: 60px 20px 40px; }
}

@media (max-width: 480px) {
    .terms-section { padding: 25px 20px; }
    .terms-section h2 { padding-left: 10px; }
}

.arrow-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: clamp(25px, 6vw, 50px);
    right: clamp(25px, 6vw, 50px);
    height: clamp(45px, 6vw, 50px);
    width: clamp(45px, 6vw, 50px);
    background-color: var(--background-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px 0 rgba(38, 38, 38, 0.10);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.arrow-top.show {
    opacity: 1;
    visibility: visible;
}

.arrow-top svg {
    height: clamp(20px, 3vw, 25px);
}

.arrow-top:hover {
    transform: translateY(-5px);
}
