/*
   _____                                    _
  / ____|                                  | |
 | (___  _ __   __ _  ___ ___  ___ ___   __| | ___
  \___ \| '_ \ / _` |/ __/ _ \/ __/ _ \ / _` |/ _ \
  ____) | |_) | (_| | (__  __/ (__ (_) | (_| |  __/
 |_____/| .__/ \__,_|\___\___|\___\___/ \__,_|\___|
        | |
        |_|

    ------------
    Version 0.2.4 - TERMS FINAL FIX
*/

/* 1. HEADER OVERRIDE */
header {
    background: #0f0f0f !important;
    min-height: auto !important;
    padding-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 2. GŁÓWNY KONTENER */
.terms {
    padding: 80px 0 100px;
    min-height: 60vh;
}

/* 3. PRZYCISKI / ZAKŁADKI (Poprawione Proporcje) */
.nav-pills {
    display: flex;
    justify-content: center;
    gap: 30px; /* Większy odstęp między przyciskami */
    margin-bottom: 70px;
    padding: 0;
}

.nav-pills .nav-link {
    background: #161616; /* Bardzo ciemne tło */
    color: #999;
    font-weight: 700;
    
    /* ZMIANA: Szersze i wyższe przyciski */
    padding: 20px 0; /* Padding góra/dół */
    width: 220px;    /* Stała szerokość - wyglądają równo */
    
    border-radius: 12px;
    border: 1px solid #333;
    
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Sprężysta animacja */
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aktywny przycisk i najechanie */
.nav-pills .nav-link.active, 
.nav-pills .nav-link:hover {
    background: #feba01;
    color: #000000;
    box-shadow: 0 10px 30px rgba(254, 186, 1, 0.3); /* Złota poświata */
    border-color: #feba01;
    transform: translateY(-5px); /* Wyraźny ruch do góry */
}

/* 4. TREŚĆ I TYPOGRAFIA */
.terms__section {
    color: #e0e0e0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Główny nagłówek podstrony */
.terms__section h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center; /* Wyśrodkowany tytuł */
}

/* Nagłówki sekcji (np. §1. Wyciszenia) */
.terms__section h2 {
    color: #feba01; /* Złoty */
    font-weight: 700;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    padding-left: 10px;
    border-left: 4px solid #feba01; /* Pasek z lewej zamiast podkreślenia */
    line-height: 1;
}

/* 5. BOXY Z TREŚCIĄ (.z) */
.z {
    background: #141414; /* Tło ramki */
    /* USUNIĘTO BORDER - teraz jest czyściej */
    border: none; 
    
    padding: 35px 40px; /* Dużo miejsca w środku */
    border-radius: 16px;
    margin-bottom: 30px;
    
    /* Delikatny cień */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    position: relative;
}

/* Nagłówki wewnątrz boksów (np. 1.1 Czas wyciszenia) */
.z h2 {
    font-size: 20px;
    color: #fff;
    border: none;
    padding-left: 0;
    margin-top: 25px;
    margin-bottom: 10px;
    text-transform: none; /* Normalna wielkość liter dla czytelności */
}
.z h2:first-child { margin-top: 0; }

/* Tekst zasad (h6) */
.z h6, .terms__section h6 {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7; /* Oddech między liniami */
    margin: 0;
    display: block;
}

/* Linki */
.terms__section a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 15px 30px;
    background: #222;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #333;
    transition: 0.3s;
    width: 100%; /* Na całą szerokość w sekcji plików */
    text-align: center;
}
.terms__section a:hover {
    background: #feba01;
    color: #000 !important;
    border-color: #feba01;
}

/* Responsywność */
@media only screen and (max-width: 1100px) {
    .terms { padding: 50px 5% 80px; }
    .nav-pills { flex-direction: column; gap: 15px; }
    .nav-pills .nav-link { width: 100%; }
    .z { padding: 25px; } 
    .terms__section h1 { font-size: 32px; }
}