/* Legal pages (Privacy, Terms, Cookies) */
.legal-hero {
    background-color: #053717;
    color: white;
    padding: 140px 0 60px;
    text-align: center;
}

.legal-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.legal-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.legal-content {
    padding: 60px 0 80px;
    background-color: #fafafa;
}

.legal-content .container {
    max-width: 860px;
}

.legal-content article {
    background: white;
    padding: clamp(24px, 5vw, 56px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    color: #2a2a2a;
}

.legal-content article h2 {
    color: #053717;
    margin: 36px 0 14px;
    font-size: 1.4rem;
}

.legal-content article h2:first-child {
    margin-top: 0;
}

.legal-content article h3 {
    color: #053717;
    margin: 24px 0 10px;
    font-size: 1.1rem;
}

.legal-content article p,
.legal-content article ul,
.legal-content article ol {
    margin-bottom: 14px;
}

.legal-content article ul,
.legal-content article ol {
    padding-left: 22px;
}


.legal-content article li {
    margin-bottom: 6px;
}

.legal-content article a {
    color: #053717;
    text-decoration: underline;
}

.legal-content .table-wrap {
    overflow-x: auto;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 520px;
}

.legal-content table thead {
    background-color: #053717;
    color: white;
}

.legal-content table th,
.legal-content table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.legal-content table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.legal-content table tbody tr:last-child td {
    border-bottom: none;
}

.legal-note {
    margin-top: 30px;
    padding: 14px 18px;
    background: #fff8e1;
    border-left: 4px solid #f0c419;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6b5a10;
}

/* Legal accordion (FAQ-style table of contents) */
.legal-accordion {
    margin-top: 18px;
    border: 1px solid #e4e7e5;
    border-radius: 10px;
    overflow: hidden;
}

.legal-acc {
    border-bottom: 1px solid #e4e7e5;
    background: #fff;
}

.legal-acc:last-child {
    border-bottom: none;
}

.legal-acc > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 46px 16px 18px;
    position: relative;
    font-weight: 600;
    color: #053717;
    font-size: 0.98rem;
    line-height: 1.45;
    transition: background-color 0.2s ease;
}

.legal-acc > summary::-webkit-details-marker {
    display: none;
}

.legal-acc > summary:hover {
    background-color: #f3f7f4;
}

.legal-acc > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #053717;
    transition: transform 0.25s ease;
}

.legal-acc[open] > summary {
    background-color: #f3f7f4;
}

.legal-acc[open] > summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.legal-acc-body {
    padding: 4px 18px 20px;
    border-top: 1px solid #eef1ef;
}

.legal-acc-body h3:first-child {
    margin-top: 16px;
}

.legal-acc-body p:last-child,
.legal-acc-body ul:last-child {
    margin-bottom: 0;
}
