@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Rubik:wght@400;700&display=swap');
:root {
    --color-yellow: #FFE70E;
    --color-light-grey: #F1F2F2;
    --color-grey: #D1D3CF;
    --color-medium-grey: #737979;
    --color-dark-grey: #3E4548;
    --color-medium-blue: #0d233c;
    --color-dark-blue: #061019;
    --color-white: #fff;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-s: 0.875rem;    /* 14px */
    --font-size-m: 1rem;        /* 16px */
    --font-size-l: 1.25rem;     /* 20px */
    --font-size-xl: 1.5rem;      /* 24px */
}

/* --- Minimal CSS Reset --- */

/* Reset margin and padding for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Base styles for HTML and body */
html, body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-dark-blue);
    height: 100%;
}

/* Reset margins and font weights for headings */
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* Reset button */
button { border: none; background: none; }
button:hover { cursor: pointer; }

/* Reset link */
a { text-decoration: none; color: inherit; }

/* Reset image styles */
img { max-width: 100%; height: auto; }

.t-center { text-align: center; }
.t-start { text-align: start; }
.t-end { text-align: end; }
.bold { font-weight: bold; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* --- Page Design --- */

/* Main container */
.legal-info-container {
    display: flex;
    height: 100vh;
}

/* Left column (1/3) */
.legal-sidebar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-transform: uppercase;
}

.legal-sidebar .sidebar-column { flex: 50%; }

.legal-sidebar h1 { font-size: 1.5rem;}

.legal-sidebar .logo-layout {
    display: inline-block;
    width: 160px;
    height: 160px;
}

.legal-sidebar .logo-layout img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right column (2/3) */
.legal-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 40px 30px;
    color: var(--color-medium-blue);
    justify-content: flex-start; /* Ensures space distribution for each part */
    max-height: 100%;
    height: 100%;
}

/* Header */
.header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.header .short-company-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.header .language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.875rem;
}

.header .language-switch .active { font-weight: 400; }

.header .language-switch button {
    background: none;
    border: none;
    font-size: var(--font-size-small);
    cursor: pointer;
}

.header a:hover, .language-switch button:hover{
    color: var(--color-dark-grey);
    transition: color 0.3s ease;
}

/* Dropdown container */
.dropdown-container {
    padding: 20px;
    flex-grow: 1;
    overflow: auto;
}

.dropdown {
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.dropdown-btn {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    color: var(--color-dark-blue);
    font-weight: bold;
    text-align: left;
    border-bottom: 4px solid var(--color-medium-blue);
    cursor: pointer;
}

.dropdown-btn:hover { background-color: var(--color-white); }

.dropdown-content {
    display: none;
    text-align: justify;
    padding: 20px;
    background-color: var(--color-white);
    color: var(--color-dark-grey);
    font-size: 0.75rem;
}

.dropdown.show .dropdown-content { display: block; }

.plus-sign {  display: inline-block; font-size: 1.125rem; transition: transform 0.3s ease-in-out; }
.rotate { transform: rotate(45deg); }

/* Back home container */
.back-home-container { padding: 40px;}

.back-link {
    padding: 15px 30px;
    outline: 1px solid var(--color-grey);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 30px;
}

.back-link:hover {
    background-color: var(--color-medium-blue);
    color: var(--color-white);
}

/* Footer */
.legal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 5px;
    font-size: 0.875rem;
    margin-top: auto;
}

.legal-footer .copyright {
    flex: 1;
    text-align: left;
    font-size: 0.75rem;
}

.legal-footer .copyright strong {
    color: var(--color-medium-blue);
}

.legal-footer .social-icons {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: end;
    gap: 5px;
}

.social-icons a {
    font-size: 1rem;
    outline: 1px solid var(--color-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 4px 8px;
    border-radius: 2px;
}

.social-icons a:hover {
    background-color: var(--color-medium-blue);
    color: var(--color-white);
}

/* --- Mobile (1 column) --- */
@media (max-width: 768px) {
    body { overflow: auto; }
    .legal-info-container { flex-direction: column; height: 100vh; }
    .header { padding: 10px; }
    .legal-sidebar { width: 100%; padding: 20px 10px; }
    .legal-sidebar h1 { font-size: 1.25rem; }
    .legal-sidebar .logo-layout { width: 100px; height: 100px; }
    .legal-sidebar .logo-layout img { width: 100%; height: auto;}
    .legal-content { width: 100%; padding: 20px; }
    .dropdown-container { flex-grow: unset; overflow: visible; }
    .dropdown-btn { font-size: 0.875rem;}
    .back-home-container { padding: 20px; }
    .legal-footer { flex-direction: column; gap: 10px; }
}
